summary refs log tree commit diff
path: root/src/schemas
diff options
context:
space:
mode:
Diffstat (limited to 'src/schemas')
-rw-r--r--src/schemas/api/channels/Channel.ts2
-rw-r--r--src/schemas/uncategorised/ChannelModifySchema.ts3
-rw-r--r--src/schemas/uncategorised/MessageThreadCreationSchema.ts4
3 files changed, 7 insertions, 2 deletions
diff --git a/src/schemas/api/channels/Channel.ts b/src/schemas/api/channels/Channel.ts

index 4bfe3b2f..e5d99074 100644 --- a/src/schemas/api/channels/Channel.ts +++ b/src/schemas/api/channels/Channel.ts
@@ -36,7 +36,7 @@ export enum ChannelPermissionOverwriteType { member = 1, group = 2, } -export interface threadMetadata { +export interface ThreadMetadata { archived: boolean; auto_archive_duration: number; archive_timestamp: string; diff --git a/src/schemas/uncategorised/ChannelModifySchema.ts b/src/schemas/uncategorised/ChannelModifySchema.ts
index 226b9ea1..6cfe340c 100644 --- a/src/schemas/uncategorised/ChannelModifySchema.ts +++ b/src/schemas/uncategorised/ChannelModifySchema.ts
@@ -45,4 +45,7 @@ export interface ChannelModifySchema { flags?: number; default_thread_rate_limit_per_user?: number; video_quality_mode?: number; + auto_archive_duration?: number; + archived?: boolean; + locked?: boolean; } diff --git a/src/schemas/uncategorised/MessageThreadCreationSchema.ts b/src/schemas/uncategorised/MessageThreadCreationSchema.ts
index 72992224..ed78d7dd 100644 --- a/src/schemas/uncategorised/MessageThreadCreationSchema.ts +++ b/src/schemas/uncategorised/MessageThreadCreationSchema.ts
@@ -16,10 +16,12 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ +import { ChannelType } from "../api"; + export interface MessageThreadCreationSchema { auto_archive_duration?: number; rate_limit_per_user?: number; name: string; - type?: number; + type?: ChannelType.GUILD_NEWS_THREAD | ChannelType.GUILD_PRIVATE_THREAD | ChannelType.GUILD_PUBLIC_THREAD; location?: string; //0 clue what this means lol }