-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[message_create] Document new enforce_nonce
param
#6647
Conversation
Will this also be supported for webhooks and especially interaction webhooks? |
webhooks and interaction webhooks are a bit more intricate, so nothing imminently coming for those |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a note that in v11 this will be the default?
@MCausc78 If a message was recently created with the same nonce by the same user it returns that message instead of trying to create a new message. That we don't try to recreate the message if it was created then subsequently deleted is intentional. The intent of this flow is to allow for a safe retry for message sending. |
Do we know how long "a short duration is"? |
From the docs they're adding in this very PR:
:) |
Recently I added a new enforce_nonce on POST channel/messages parameter that will allow bots to opt in to having their messages deduped on the nonce parameter in a short duration.
Recently I added a new
enforce_nonce
on POST channel/messages parameter that will allow bots to opt in to having their messages deduped on thenonce
parameter in a short duration.