diff --git a/index.d.ts b/index.d.ts index b48c33a0..fbb94ffb 100644 --- a/index.d.ts +++ b/index.d.ts @@ -373,6 +373,7 @@ declare namespace Dysnomia { defaultForumLayout?: ForumLayoutTypes; defaultReactionEmoji?: ForumDefaultReactionEmoji | null; defaultSortOrder?: ThreadSortingOrders | null; + defaultThreadRateLimitPerUser?: number | null; nsfw?: boolean; parentID?: string; permissionOverwrites?: Overwrite[]; @@ -388,7 +389,6 @@ declare namespace Dysnomia { archived?: boolean; appliedTags?: string[]; autoArchiveDuration?: AutoArchiveDuration; - defaultThreadRateLimitPerUser?: number | null; flags?: number; invitable?: boolean; locked?: boolean; diff --git a/lib/Client.js b/lib/Client.js index 2483c9e8..e37ce18f 100644 --- a/lib/Client.js +++ b/lib/Client.js @@ -422,6 +422,7 @@ class Client extends EventEmitter { * @arg {Number} [options.defaultForumLayout] The default forum layout view used to display forum posts * @arg {Object} [options.defaultReactionEmoji] The emoji to show as the reaction button (forum channels only) * @arg {Object} [options.defaultSortOrder] The default thread sorting order + * @arg {Number} [options.defaultThreadRateLimitPerUser] The initial ratelimit of the channel to use on newly created threads, in seconds. 0 means no ratelimit is enabled * @arg {Boolean} [options.nsfw] The nsfw status of the channel * @arg {String?} [options.parentID] The ID of the parent category channel for this channel * @arg {Array} [options.permissionOverwrites] An array containing permission overwrite objects @@ -453,6 +454,7 @@ class Client extends EventEmitter { emoji_name: options.defaultReactionEmoji.emojiName }, default_sort_order: options.defaultSortOrder, + default_thread_rate_limit_per_user: options.defaultThreadRateLimitPerUser, nsfw: options.nsfw, parent_id: options.parentID, permission_overwrites: options.permissionOverwrites, diff --git a/lib/structures/Guild.js b/lib/structures/Guild.js index a6e9a93f..f485375c 100644 --- a/lib/structures/Guild.js +++ b/lib/structures/Guild.js @@ -412,6 +412,7 @@ class Guild extends Base { * @arg {Number} [options.defaultForumLayout] The default forum layout view used to display forum posts * @arg {Object} [options.defaultReactionEmoji] The emoji to show as the reaction button (forum channels only) * @arg {Object} [options.defaultSortOrder] The default thread sorting order + * @arg {Number} [options.defaultThreadRateLimitPerUser] The initial ratelimit of the channel to use on newly created threads, in seconds. 0 means no ratelimit is enabled * @arg {Boolean} [options.nsfw] The nsfw status of the channel * @arg {String?} [options.parentID] The ID of the parent category channel for this channel * @arg {Array} [options.permissionOverwrites] An array containing permission overwrite objects