Skip to content

Commit 223d895

Browse files
committed
feat: add user to slash command dimensions so that we know who's invoking commands
1 parent 4d538c0 commit 223d895

File tree

1 file changed

+1
-0
lines changed
  • application/src/main/java/org/togetherjava/tjbot/features/system

1 file changed

+1
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/features/system/BotCore.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ public void onSlashCommandInteraction(SlashCommandInteractionEvent event) {
387387

388388
Map<String, Object> dimensions = new HashMap<>();
389389
dimensions.put("name", name);
390+
dimensions.put("user", event.getUser().getName());
390391

391392
if (event.getSubcommandName() != null) {
392393
dimensions.put("subCommandName", event.getSubcommandName());

0 commit comments

Comments
 (0)