summary refs log tree commit diff
path: root/dist/models/Channel.d.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:26 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-11 20:44:26 +0100
commit673e691c6e26a0abbadb93cf8ef4b1e45ad1accc (patch)
tree8496623a70f192e4e88ec487e38e0f6c284dc883 /dist/models/Channel.d.ts
parent:sparkles: updated other models (diff)
downloadserver-673e691c6e26a0abbadb93cf8ef4b1e45ad1accc.tar.xz
:wrench: build
Diffstat (limited to 'dist/models/Channel.d.ts')
-rw-r--r--dist/models/Channel.d.ts45
1 files changed, 37 insertions, 8 deletions
diff --git a/dist/models/Channel.d.ts b/dist/models/Channel.d.ts

index f19071ef..efd0c226 100644 --- a/dist/models/Channel.d.ts +++ b/dist/models/Channel.d.ts
@@ -1,15 +1,24 @@ export interface Channel { id: bigint; - guild_id: bigint; - last_message_id: string; - last_pin_timestamp: string; + created_at: number; name: string; - nsfw: boolean; - parent_id: bigint; - position: number; - rate_limit_per_user: number; - topic: string | null; type: number; + read_state: ReadState[]; +} +export interface ReadState { + last_message_id: bigint; + last_pin_timestamp: number; + mention_count: number; +} +export interface TextBasedChannel { + messages: any[]; + last_message_id?: bigint; + last_pin_timestamp?: number; +} +export interface GuildChannel extends Channel { + guild_id: bigint; + position: number; + parent_id?: bigint; permission_overwrites: { allow: bigint; deny: bigint; @@ -17,3 +26,23 @@ export interface Channel { type: number; }[]; } +export interface VoiceChannel extends GuildChannel { +} +export interface TextChannel extends GuildChannel, TextBasedChannel { + nsfw: boolean; + rate_limit_per_user: number; + topic?: string; +} +export interface DMChannel extends Channel, TextBasedChannel { + owner_id: bigint; + recipients: bigint[]; +} +export declare enum ChannelType { + GUILD_TEXT = 0, + DM = 1, + GUILD_VOICE = 2, + GROUP_DM = 3, + GUILD_CATEGORY = 4, + GUILD_NEWS = 5, + GUILD_STORE = 6 +}