File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/main/java/net/discordjug/javabot/systems/staff_commands Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 77import org .springframework .scheduling .config .ScheduledTaskHolder ;
88
99import net .discordjug .javabot .data .config .BotConfig ;
10+ import net .discordjug .javabot .util .ExceptionLogger ;
1011import net .discordjug .javabot .util .Responses ;
1112import net .dv8tion .jda .api .Permission ;
1213import net .dv8tion .jda .api .events .interaction .command .CommandAutoCompleteInteractionEvent ;
@@ -67,7 +68,8 @@ public void execute(SlashCommandInteractionEvent event) {
6768 //CHECKSTYLE:OFF This is a handler for all sort of failures that could possibly happen
6869 }catch (RuntimeException e ) {
6970 //CHECKSTYLE:ON
70- Responses .error (event ,
71+ ExceptionLogger .capture (e , getClass ().getName ());
72+ Responses .error (event .getHook (),
7173 "Task failed with an exception: %s" ,
7274 e .getClass ().getName () + (e .getMessage () == null ? "" : ": " +e .getMessage ()))
7375 .queue ();
You can’t perform that action at this time.
0 commit comments