forked from Fascinated/Bat
oopsie, log after command was ran
This commit is contained in:
parent
295d673d06
commit
d7916ad24a
@ -231,10 +231,10 @@ public class CommandService extends ListenerAdapter {
|
||||
}
|
||||
}
|
||||
|
||||
log.info("Executing command \"{}\" for user \"{}\" (took: {}ms)", commandName, user.getDiscordUser().getName(),
|
||||
System.currentTimeMillis() - before);
|
||||
executor.execute(guild, user, ranInsideGuild ? event.getChannel().asTextChannel() : event.getChannel().asPrivateChannel(),
|
||||
event.getMember(), event.getInteraction());
|
||||
log.info("Executed command \"{}\" for user \"{}\" (took: {}ms)", commandName, user.getDiscordUser().getName(),
|
||||
System.currentTimeMillis() - before);
|
||||
} catch (Exception ex) {
|
||||
log.error("An error occurred while executing command \"{}\"", commandName, ex);
|
||||
event.replyEmbeds(EmbedUtils.errorEmbed()
|
||||
|
Loading…
x
Reference in New Issue
Block a user