summary refs log tree commit diff
path: root/dist/models/Channel.d.ts
diff options
context:
space:
mode:
authorafeuerstein <32029275+afeuerstein@users.noreply.github.com>2021-04-06 21:32:44 +0200
committerafeuerstein <32029275+afeuerstein@users.noreply.github.com>2021-04-06 21:32:44 +0200
commit0e8356e9b1acd95be5b94f0e55bba9d749a36d12 (patch)
tree628a02e478cf8df2b4c12eab14bfb7f1dac03be2 /dist/models/Channel.d.ts
parent:bug: fix Message Model (diff)
downloadserver-0e8356e9b1acd95be5b94f0e55bba9d749a36d12.tar.xz
remove compiled typescript code from repo
Diffstat (limited to 'dist/models/Channel.d.ts')
-rw-r--r--dist/models/Channel.d.ts55
1 files changed, 0 insertions, 55 deletions
diff --git a/dist/models/Channel.d.ts b/dist/models/Channel.d.ts
deleted file mode 100644

index d3048622..00000000 --- a/dist/models/Channel.d.ts +++ /dev/null
@@ -1,55 +0,0 @@ -/// <reference path="../util/MongoBigInt.d.ts" /> -import { Schema, Document } from "mongoose"; -export interface AnyChannel extends Channel, DMChannel, TextChannel, VoiceChannel { -} -export interface ChannelDocument extends Document, AnyChannel { - id: string; -} -export declare const ChannelSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>; -export declare const ChannelModel: import("mongoose").Model<ChannelDocument>; -export interface Channel { - id: string; - created_at: Date; - name: string; - type: number; -} -export interface TextBasedChannel { - last_message_id?: string; - last_pin_timestamp?: number; -} -export interface GuildChannel extends Channel { - guild_id: string; - position: number; - parent_id?: string; - permission_overwrites: ChannelPermissionOverwrite[]; -} -export interface ChannelPermissionOverwrite { - allow: bigint; - deny: bigint; - id: string; - type: ChannelPermissionOverwriteType; -} -export declare enum ChannelPermissionOverwriteType { - role = 0, - member = 1 -} -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: string; - recipients: string[]; -} -export declare enum ChannelType { - GUILD_TEXT = 0, - DM = 1, - GUILD_VOICE = 2, - GROUP_DM = 3, - GUILD_CATEGORY = 4, - GUILD_NEWS = 5, - GUILD_STORE = 6 -}