From 1e52e0ceab31465c7bbd820e332ef219ad715916 Mon Sep 17 00:00:00 2001 From: Suneet Tipirneni <77477100+suneettipirneni@users.noreply.github.com> Date: Mon, 15 Nov 2021 14:46:04 -0500 Subject: [PATCH] feat(RESTPostAPIChannelThreadsJSONBody): add `rate_limit_per_user` (#237) --- deno/rest/v9/channel.ts | 4 ++++ rest/v9/channel.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/deno/rest/v9/channel.ts b/deno/rest/v9/channel.ts index 5e5d77eb..aa57a5d3 100644 --- a/deno/rest/v9/channel.ts +++ b/deno/rest/v9/channel.ts @@ -575,6 +575,10 @@ export interface RESTPostAPIChannelMessagesThreadsJSONBody { * The 3 day and 7 day archive durations require the server to be boosted. The [guild features](https://discord.com/developers/docs/resources/guild#guild-object-guild-features) will indicate if a server is able to use those settings. */ auto_archive_duration: ThreadAutoArchiveDuration; + /** + * Amount of seconds a user has to wait before sending another message (0-21600) + */ + rate_limit_per_user?: number; } /** diff --git a/rest/v9/channel.ts b/rest/v9/channel.ts index 22796a51..12889d25 100644 --- a/rest/v9/channel.ts +++ b/rest/v9/channel.ts @@ -575,6 +575,10 @@ export interface RESTPostAPIChannelMessagesThreadsJSONBody { * The 3 day and 7 day archive durations require the server to be boosted. The [guild features](https://discord.com/developers/docs/resources/guild#guild-object-guild-features) will indicate if a server is able to use those settings. */ auto_archive_duration: ThreadAutoArchiveDuration; + /** + * Amount of seconds a user has to wait before sending another message (0-21600) + */ + rate_limit_per_user?: number; } /**