Skip to content

Commit 501e271

Browse files
authored
Merge pull request #517 from danthe1st/format-code-interaction
fix error response of /format-code
2 parents d9dc57d + 278c5b1 commit 501e271

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)