Skip to content

Commit

Permalink
feat(RESTPostAPIChannelThreadsJSONBody): add rate_limit_per_user (#237
Browse files Browse the repository at this point in the history
)
  • Loading branch information
suneettipirneni committed Nov 15, 2021
1 parent 691abb5 commit 1e52e0c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deno/rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down
4 changes: 4 additions & 0 deletions rest/v9/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 1e52e0c

Please sign in to comment.