mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-19 21:17:43 +00:00
[AB-xxx] fixing passing wrong ID in contact slash command
This commit is contained in:
@@ -97,7 +97,7 @@ public class Contact extends AbstractConditionableCommand {
|
|||||||
@Override
|
@Override
|
||||||
public CompletableFuture<CommandResult> executeSlash(SlashCommandInteractionEvent event) {
|
public CompletableFuture<CommandResult> executeSlash(SlashCommandInteractionEvent event) {
|
||||||
User user = slashCommandParameterService.getCommandOption(USER_PARMETER, event, User.class);
|
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
|
// 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
|
// containing a link to the channel, instead of opening a new one
|
||||||
if(modMailThreadManagementService.hasOpenModMailThreadForUser(userInAServer)) {
|
if(modMailThreadManagementService.hasOpenModMailThreadForUser(userInAServer)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user