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 authored Sep 12, 2023
1 parent 464b5a7 commit 448f40b
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 @@ -346,6 +346,7 @@ declare namespace Dysnomia {
defaultForumLayout?: ForumLayoutTypes;
defaultReactionEmoji?: ForumDefaultReactionEmoji | null;
defaultSortOrder?: ThreadSortingOrders | null;
defaultThreadRateLimitPerUser?: number | null;
nsfw?: boolean;
parentID?: string;
permissionOverwrites?: Overwrite[];
Expand All @@ -361,7 +362,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 @@ -408,6 +408,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 @@ -439,6 +440,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 @@ -400,6 +400,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 448f40b

Please sign in to comment.