From cee79197e621696457ef17978ab28f6e73548149 Mon Sep 17 00:00:00 2001 From: Fleny Date: Wed, 21 Feb 2024 15:07:56 +0100 Subject: [PATCH] Add enforceNone (closes #3431) (#3432) --- packages/types/src/discordeno.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/types/src/discordeno.ts b/packages/types/src/discordeno.ts index 433399547..6bfe2f2ef 100644 --- a/packages/types/src/discordeno.ts +++ b/packages/types/src/discordeno.ts @@ -77,6 +77,8 @@ export interface CreateMessageOptions { stickerIds?: [BigString] | [BigString, BigString] | [BigString, BigString, BigString] /** Message flags combined as a bitfield, only SUPPRESS_EMBEDS and SUPPRESS_NOTIFICATIONS can be set */ flags?: DiscordMessageFlag + /** If true and nonce is present, it will be checked for uniqueness in the past few minutes. If another message was created by the same author with the same nonce, that message will be returned and no new message will be created. */ + enforceNonce?: boolean } export type MessageComponents = ActionRow[]