Skip to content

Commit 6922115

Browse files
committed
use event.getHook() for unban failure warning
1 parent 1182d57 commit 6922115

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/net/discordjug/javabot/systems/moderation/UnbanCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected ReplyCallbackAction handleModerationCommand(@NotNull SlashCommandInter
4747
.thenAccept(success -> {
4848
Responses.success(event.getHook(), "User Unbanned", "User with id `%s` has been unbanned.", id).queue();
4949
}).exceptionally(failed -> {
50-
Responses.warning(event, "Could not find banned User with id `%s` or a different error occured: `%s`", id, failed.getMessage()).queue();
50+
Responses.warning(event.getHook(), "Could not find banned User with id `%s` or a different error occured: `%s`", id, failed.getMessage()).queue();
5151
return null;
5252
});
5353
return event.deferReply();

0 commit comments

Comments
 (0)