From 0721484a934031721904d0689a7794b212b139b7 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Wed, 18 Aug 2021 11:53:22 +0200 Subject: [PATCH] :sparkles: add default_auto_archive_duration to channel --- api/src/schema/Channel.ts | 4 ++++ util/src/models/Channel.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/api/src/schema/Channel.ts b/api/src/schema/Channel.ts index bffbaa69..cfbc7205 100644 --- a/api/src/schema/Channel.ts +++ b/api/src/schema/Channel.ts @@ -18,6 +18,8 @@ export const ChannelModifySchema = { } ], $parent_id: String, + $rtc_region: String, + $default_auto_archive_duration: Number, $id: String, // kept for backwards compatibility does nothing (need for guild create) $nsfw: Boolean }; @@ -49,6 +51,8 @@ export interface ChannelModifySchema { parent_id?: string; id?: string; // is not used (only for guild create) nsfw?: boolean; + rtc_region?: string; + default_auto_archive_duration?: number; } export const ChannelGuildPositionUpdateSchema = [ diff --git a/util/src/models/Channel.ts b/util/src/models/Channel.ts index 1dd05896..2959decd 100644 --- a/util/src/models/Channel.ts +++ b/util/src/models/Channel.ts @@ -26,6 +26,7 @@ export const ChannelSchema = new Schema({ last_pin_timestamp: Date, nsfw: Boolean, rate_limit_per_user: Number, + default_auto_archive_duration: Number, topic: String, permission_overwrites: [ { @@ -60,6 +61,7 @@ export interface Channel { export interface TextBasedChannel { last_message_id?: string; last_pin_timestamp?: number; + default_auto_archive_duration?: number; } export interface GuildChannel extends Channel {