Add logging for user ban retrieval in DiscordAppealDiscord and annotate class with @Slf4j.
This commit is contained in:
parent
20c89a4f8e
commit
a6813129bb
|
|
@ -1,11 +1,13 @@
|
|||
package com.alttd.webinterface.appeals;
|
||||
|
||||
import com.alttd.webinterface.bot.DiscordBotInstance;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import net.dv8tion.jda.api.entities.Guild;
|
||||
|
||||
import java.util.Optional;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
@Slf4j
|
||||
public class DiscordAppealDiscord {
|
||||
private static final DiscordAppealDiscord INSTANCE = new DiscordAppealDiscord();
|
||||
|
||||
|
|
@ -21,6 +23,7 @@ public class DiscordAppealDiscord {
|
|||
throw new IllegalStateException("Guild not found");
|
||||
}
|
||||
CompletableFuture<Optional<BannedUser>> completableFuture = new CompletableFuture<>();
|
||||
log.info("Retrieving ban for user {}", discordId);
|
||||
DiscordBotInstance.getInstance().getJda().retrieveUserById(discordId)
|
||||
.queue(user -> {
|
||||
guildById.retrieveBan(user).queue(ban -> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user