Skip to content

Commit d421f9c

Browse files
committed
fixed delete buttons
1 parent 0020b96 commit d421f9c

File tree

1 file changed

+2
-1
lines changed
  • application/src/main/java/org/togetherjava/tjbot/features/mathcommands

1 file changed

+2
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/mathcommands/TeXCommand.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ public void onButtonClick(final ButtonInteractionEvent event, final List<String>
170170
.queue();
171171
return;
172172
}
173-
event.getMessage().delete().queue();
173+
event.deferReply().queue();
174+
event.getHook().deleteOriginal().queue();
174175
}
175176
}

0 commit comments

Comments
 (0)