You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While bootstrapping, the extension respects overwrite-on-start and creates the command. With a breakpoint in io.quarkiverse.discord4j.commands.runtime.Discord4jCommandsRegistrar#register on line 63, I was able to ensure that the command gets in fact created.
However, right afterwards, the delete-missing logic kicks in, fetches a list of commands from Discord, fails to find the newly created command and emits deletion request. Look for log line at DEBUG:
2024-12-20 21:41:51,537 DEBUG [io.qua.dis.com.run.Discord4jCommandsRegistrar] (executor-thread-1) Deleted global command testcommand as it does not have a matching JSON file in META-INF/commands
I'd bet that this is because the Discord API is eventually-consistent, which is stated in the API docs. Here's a small reproducer for you: https://github.com/artkonr/discord-command-err-reproducer. I didn't verify the behaviour for guild commands, though.
On a side note, I was also able to observe that global commands do not require an hour to propagate, contrary to what is stated in the documentation. Would be great if you could also fix that too. Thanks!
The text was updated successfully, but these errors were encountered:
Greetings folks,
I have encountered an issue with global discord commands. Given:
.json
and put intoMETA-INF/commands
quarkus.discord4j.global-commands.delete-missing
quarkus.discord4j.global-commands.overwrite-on-start
.While bootstrapping, the extension respects
overwrite-on-start
and creates the command. With a breakpoint inio.quarkiverse.discord4j.commands.runtime.Discord4jCommandsRegistrar#register
on line 63, I was able to ensure that the command gets in fact created.However, right afterwards, the
delete-missing
logic kicks in, fetches a list of commands from Discord, fails to find the newly created command and emits deletion request. Look for log line atDEBUG
:I'd bet that this is because the Discord API is eventually-consistent, which is stated in the API docs. Here's a small reproducer for you: https://github.com/artkonr/discord-command-err-reproducer. I didn't verify the behaviour for guild commands, though.
On a side note, I was also able to observe that global commands do not require an hour to propagate, contrary to what is stated in the documentation. Would be great if you could also fix that too. Thanks!
The text was updated successfully, but these errors were encountered: