From d4e109a48eb26a8529477fabf69d9f05ec0d21ce Mon Sep 17 00:00:00 2001 From: LTS20050703 <87189679+lts20050703@users.noreply.github.com> Date: Fri, 13 May 2022 00:53:51 +0700 Subject: [PATCH] Add default_auto_archive_duration to createChannel helper options (#2202) * Add default_auto_archive_duration to createChannel helper options * Update helpers/channels/createChannel.ts Co-authored-by: ITOH Co-authored-by: ITOH Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> --- helpers/channels/createChannel.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helpers/channels/createChannel.ts b/helpers/channels/createChannel.ts index 4d5306bdf..8f037aceb 100644 --- a/helpers/channels/createChannel.ts +++ b/helpers/channels/createChannel.ts @@ -30,6 +30,7 @@ export async function createChannel(bot: Bot, guildId: bigint, options?: CreateG })), type: options?.type || ChannelTypes.GuildText, reason, + default_auto_archive_duration: options?.defaultAutoArchiveDuration, } : {}, ); @@ -58,4 +59,6 @@ export interface CreateGuildChannel { parentId?: bigint; /** Whether the channel is nsfw */ nsfw?: boolean; + /** Default duration (in minutes) that clients (not the API) use for newly created threads in this channel, to determine when to automatically archive the thread after the last activity */ + defaultAutoArchiveDuration?: number; }