mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-25 20:04:01 +00:00
[AB-xxx] fixing using wrong parameter for unSuggest command
This commit is contained in:
@@ -48,7 +48,7 @@ public class UnSuggest extends AbstractConditionableCommand {
|
||||
@Override
|
||||
public CompletableFuture<CommandResult> executeSlash(SlashCommandInteractionEvent event) {
|
||||
Long suggestionId = slashCommandParameterService.getCommandOption(SUGGESTION_ID_PARAMETER, event, Long.class, Integer.class).longValue();
|
||||
return suggestionService.removeSuggestion(event.getMember().getIdLong(), suggestionId, event.getMember())
|
||||
return suggestionService.removeSuggestion(event.getGuild().getIdLong(), suggestionId, event.getMember())
|
||||
.thenCompose(unused -> interactionService.replyEmbed(UN_SUGGEST_RESPONSE, event))
|
||||
.thenApply(aVoid -> CommandResult.fromSuccess());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user