mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
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 <to@itoh.at> Co-authored-by: ITOH <to@itoh.at> Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user