|Related Guide Page||https://guide.denizenscript.com/guides/expanding/ddiscordbot.html|
|Short Description||Manages Discord interactions.|
|Full Description||Manages Discord interactions.
You can defer, reply to, edit, or delete an interaction. These instructions all require the "interaction" argument.
The "ephemeral" argument can be used to have the reply message be visible to that one user.
You can defer an interaction before replying, which is useful if your reply may take more than a few seconds to be selected.
If you defer, the 'ephemeral' option can only be set by the defer - you cannot change it with the later reply.
Replying to an interaction uses similar logic to normal messaging. See discordmessage.
If you deferred without using 'ephemeral', the 'delete' option will delete the "Thinking..." message.
Slash commands, and replies to interactions, have limitations. See https://gist.github.com/MinnDevelopment/b883b078fdb69d0e568249cc8bf37fe9.
Generally used alongside discordcommand
The command can be ~waited for. See ~waitable.