add command execution log

This commit is contained in:
Lee 2024-06-27 13:36:03 +01:00
parent ecd688310f
commit 0fc5e6514a

@ -148,6 +148,7 @@ public class CommandService extends ListenerAdapter {
return; return;
} }
} }
log.info("Executing command \"{}\" for user \"{}\"", commandName, user.getDiscordUser().getName());
executor.execute(guild, user, ranInsideGuild ? event.getChannel().asTextChannel() : event.getChannel().asPrivateChannel(), executor.execute(guild, user, ranInsideGuild ? event.getChannel().asTextChannel() : event.getChannel().asPrivateChannel(),
event.getMember(), event.getInteraction()); event.getMember(), event.getInteraction());
} catch (Exception ex) { } catch (Exception ex) {