Skip to content

Accept nonce when executing a webhook #3396

Discussion options

You must be logged in to vote

The nonce field is used for optimistic message sending, something that I don't think webhooks even care about. The nonce is not stored anywhere, and is only used to match a MESSAGE_CREATE event with a pending http request. Additionally we also use the nonce to dedupe retried messages within a small time window.

Given this context, I'm not sure why nonce would need to exist on webhooks. The use-case you provide seems to be trivially accomplishable by recording the message id.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@MinnDevelopment
Comment options

@jhgg
Comment options

@MinnDevelopment
Comment options

@advaith1
Comment options

@ghost
Comment options

Answer selected by advaith1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants