Skip to content

Commit 278c5b1

Browse files
committed
fix error response of /format-code
1 parent fd5403c commit 278c5b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/discordjug/javabot/systems/user_commands/format_code/FormatCodeCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public void execute(@NotNull SlashCommandInteractionEvent event) {
8686
});
8787
} else {
8888
if (Checks.isInvalidLongInput(idOption)) {
89-
Responses.error(event, "Please provide a valid message id!").queue();
89+
Responses.error(event.getHook(), "Please provide a valid message id!").queue();
9090
return;
9191
}
9292
long messageId = idOption.getAsLong();

0 commit comments

Comments
 (0)