mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-15 20:16:34 +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
|
@Override
|
||||||
public CompletableFuture<CommandResult> executeSlash(SlashCommandInteractionEvent event) {
|
public CompletableFuture<CommandResult> executeSlash(SlashCommandInteractionEvent event) {
|
||||||
Long suggestionId = slashCommandParameterService.getCommandOption(SUGGESTION_ID_PARAMETER, event, Long.class, Integer.class).longValue();
|
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))
|
.thenCompose(unused -> interactionService.replyEmbed(UN_SUGGEST_RESPONSE, event))
|
||||||
.thenApply(aVoid -> CommandResult.fromSuccess());
|
.thenApply(aVoid -> CommandResult.fromSuccess());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user