Skip to content

Commit

Permalink
[AB-xxx] fixing passing wrong ID in contact slash command
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheldan committed Jun 13, 2024
1 parent 0097ff8 commit bfb8969
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public CompletableFuture<CommandResult> executeAsync(CommandContext commandConte
@Override
public CompletableFuture<CommandResult> executeSlash(SlashCommandInteractionEvent event) {
User user = slashCommandParameterService.getCommandOption(USER_PARMETER, event, User.class);
AUserInAServer userInAServer = userManagementService.loadOrCreateUser(user.getIdLong(), event.getGuild().getIdLong());
AUserInAServer userInAServer = userManagementService.loadOrCreateUser(event.getGuild().getIdLong(), user.getIdLong());
// if this AUserInAServer already has an open thread, we should instead post a message
// containing a link to the channel, instead of opening a new one
if(modMailThreadManagementService.hasOpenModMailThreadForUser(userInAServer)) {
Expand Down

0 comments on commit bfb8969

Please sign in to comment.