Skip to content

Commit

Permalink
feat(Guild): add defaultThreadRatelimitPerUser to createChannel (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
TTtie committed Jan 9, 2024
1 parent fee3a84 commit 076a126
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ declare namespace Dysnomia {
defaultForumLayout?: ForumLayoutTypes;
defaultReactionEmoji?: ForumDefaultReactionEmoji | null;
defaultSortOrder?: ThreadSortingOrders | null;
defaultThreadRateLimitPerUser?: number | null;
nsfw?: boolean;
parentID?: string;
permissionOverwrites?: Overwrite[];
Expand All @@ -388,7 +389,6 @@ declare namespace Dysnomia {
archived?: boolean;
appliedTags?: string[];
autoArchiveDuration?: AutoArchiveDuration;
defaultThreadRateLimitPerUser?: number | null;
flags?: number;
invitable?: boolean;
locked?: boolean;
Expand Down
2 changes: 2 additions & 0 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<Object>} [options.permissionOverwrites] An array containing permission overwrite objects
Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions lib/structures/Guild.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 076a126

Please sign in to comment.