GeyserMC / GeyserDiscordBot

A bot for the GeyserMC Discord server
https://geysermc.org
MIT License
22 stars 42 forks source link

CommandErrorHandler doesn't support deferred interactions #308

Closed sentry-io[bot] closed 7 months ago

sentry-io[bot] commented 8 months ago

Sentry Issue: GEYSERDISCORDBOT-7R

IllegalStateException: This interaction has already been acknowledged or replied to. You can only reply or acknowledge an interaction once!
    at net.dv8tion.jda.internal.requests.restaction.interactions.InteractionCallbackImpl.tryAck(InteractionCallbackImpl.java:57)
    at net.dv8tion.jda.internal.requests.restaction.interactions.InteractionCallbackImpl.queue(InteractionCallbackImpl.java:64)
    at net.dv8tion.jda.api.requests.RestAction.queue(RestAction.java:572)
    at net.dv8tion.jda.api.requests.RestAction.queue(RestAction.java:538)
    at org.geysermc.discordbot.listeners.CommandErrorHandler.onSlashCommandException(CommandErrorHandler.java:58)
    .build()).setEphemeral(true).queue();
...
(22 additional frame(s) were not displayed)

RestAction queue returned failure
rtm516 commented 7 months ago

Fixed in 7455258