feat(RESTPostAPIChannelThreadsJSONBody): add rate_limit_per_user (#237)

This commit is contained in:
Suneet Tipirneni
2021-11-15 14:46:04 -05:00
committed by GitHub
parent 691abb581f
commit 1e52e0ceab
2 changed files with 8 additions and 0 deletions

View File

@@ -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;
}
/**

View File

@@ -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;
}
/**