Skip to content

Commit

Permalink
Implemented USER ID For Commands
Browse files Browse the repository at this point in the history
  • Loading branch information
beanbeanjuice committed Oct 3, 2023
1 parent 14cd347 commit 3559f11
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ public void onSlashCommandInteraction(@NotNull SlashCommandInteractionEvent even

private void logCommand(@NotNull SlashCommandInteractionEvent event) {
String commandName = event.getName();
StringBuilder commandString = new StringBuilder(commandName);
StringBuilder commandString = new StringBuilder();

commandString.append("<").append(event.getUser().getId()).append("> /")
.append(commandName);

if (event.getSubcommandName() != null)
commandString.append(" ").append(event.getSubcommandName());
Expand Down

0 comments on commit 3559f11

Please sign in to comment.