Accept nonce
when executing a webhook
#3396
-
Currently, the Create Message endpoint accepts the The nonce field is useful for matching new messages with stored unsent messages. It would be useful for applications that use webhooks to send messages to channels. The messages can be matched using the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.