From 80dddeca40e834c7905c2865107397371343b1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Spie=C3=9F?= Date: Fri, 17 Jun 2022 21:37:18 +0200 Subject: [PATCH 1/2] Add back nonce --- docs/resources/Channel.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/resources/Channel.md b/docs/resources/Channel.md index b21a357e8c..4d1c95e39a 100644 --- a/docs/resources/Channel.md +++ b/docs/resources/Channel.md @@ -939,6 +939,7 @@ Files must be attached using a `multipart/form-data` body as described in [Uploa | Field | Type | Description | | ------------------ | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | content?\* | string | Message contents (up to 2000 characters) | +| nonce? | integer or string | a nonce that can be used for optimistic message sending (up to 25 characters) | | tts? | boolean | `true` if this is a TTS message | | embeds?\* | array of [embed](#DOCS_RESOURCES_CHANNEL/embed-object) objects | Embedded `rich` content (up to 6000 characters) | | allowed_mentions? | [allowed mention object](#DOCS_RESOURCES_CHANNEL/allowed-mentions-object) | Allowed mentions for the message | From 6f2559b30fdad3eadddb0a382bacdf477a4f3379 Mon Sep 17 00:00:00 2001 From: Austin Keener Date: Fri, 9 Sep 2022 17:09:10 -0400 Subject: [PATCH 2/2] Update docs/resources/Channel.md --- docs/resources/Channel.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/resources/Channel.md b/docs/resources/Channel.md index 4d1c95e39a..ba45d0fbb9 100644 --- a/docs/resources/Channel.md +++ b/docs/resources/Channel.md @@ -939,7 +939,7 @@ Files must be attached using a `multipart/form-data` body as described in [Uploa | Field | Type | Description | | ------------------ | ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | content?\* | string | Message contents (up to 2000 characters) | -| nonce? | integer or string | a nonce that can be used for optimistic message sending (up to 25 characters) | +| nonce? | integer or string | Can be used to verify a message was sent (up to 25 characters). Value will appear in the [Message Create event](#DOCS_TOPICS_GATEWAY/message-create). | tts? | boolean | `true` if this is a TTS message | | embeds?\* | array of [embed](#DOCS_RESOURCES_CHANNEL/embed-object) objects | Embedded `rich` content (up to 6000 characters) | | allowed_mentions? | [allowed mention object](#DOCS_RESOURCES_CHANNEL/allowed-mentions-object) | Allowed mentions for the message |