summary refs log tree commit diff
path: root/dist/models/Message.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/Message.d.ts
parent:bug: fix Message Model (diff)
downloadserver-0e8356e9b1acd95be5b94f0e55bba9d749a36d12.tar.xz
remove compiled typescript code from repo
Diffstat (limited to 'dist/models/Message.d.ts')
-rw-r--r--dist/models/Message.d.ts181
1 files changed, 0 insertions, 181 deletions
diff --git a/dist/models/Message.d.ts b/dist/models/Message.d.ts
deleted file mode 100644

index a629f7ee..00000000 --- a/dist/models/Message.d.ts +++ /dev/null
@@ -1,181 +0,0 @@ -/// <reference path="../util/MongoBigInt.d.ts" /> -import { Schema, Document } from "mongoose"; -export interface Message { - id: string; - channel_id: string; - guild_id?: string; - author_id?: string; - webhook_id?: string; - application_id?: string; - content?: string; - timestamp: Date; - edited_timestamp?: Date; - tts?: boolean; - mention_everyone?: boolean; - mention_user_ids: string[]; - mention_role_ids: string[]; - mention_channels_ids: string[]; - attachments: Attachment[]; - embeds: Embed[]; - reactions: Reaction[]; - nonce?: string | number; - pinned?: boolean; - type: MessageType; - activity?: { - type: number; - party_id: string; - }; - flags?: bigint; - stickers?: []; - message_reference?: { - message_id: string; - channel_id?: string; - guild_id?: string; - }; -} -export interface MessageDocument extends Document, Message { - id: string; -} -export declare enum MessageType { - DEFAULT = 0, - RECIPIENT_ADD = 1, - RECIPIENT_REMOVE = 2, - CALL = 3, - CHANNEL_NAME_CHANGE = 4, - CHANNEL_ICON_CHANGE = 5, - CHANNEL_PINNED_MESSAGE = 6, - GUILD_MEMBER_JOIN = 7, - USER_PREMIUM_GUILD_SUBSCRIPTION = 8, - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1 = 9, - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2 = 10, - USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3 = 11, - CHANNEL_FOLLOW_ADD = 12, - GUILD_DISCOVERY_DISQUALIFIED = 14, - GUILD_DISCOVERY_REQUALIFIED = 15, - REPLY = 19, - APPLICATION_COMMAND = 20 -} -export interface Attachment { - id: string; - filename: string; - size: number; - url: string; - proxy_url: string; - height: number; - width: number; -} -export interface Embed { - title?: string; - type?: string; - description?: string; - url?: string; - timestamp?: Date; - color?: number; - footer?: { - text: string; - icon_url?: string; - proxy_icon_url?: string; - }; - image?: EmbedImage; - thumbnail?: EmbedImage; - video?: EmbedImage; - provider?: { - name?: string; - url?: string; - }; - author?: { - name?: string; - url?: string; - icon_url?: string; - proxy_icon_url?: string; - }; - fields?: { - name: string; - value: string; - inline?: boolean; - }[]; -} -export interface EmbedImage { - url?: string; - proxy_url?: string; - height?: number; - width?: number; -} -export interface Reaction { - count: number; - emoji: PartialEmoji; -} -export interface PartialEmoji { - id?: string; - name: string; - animated?: boolean; -} -export interface AllowedMentions { - parse?: ("users" | "roles" | "everyone")[]; - roles?: string[]; - users?: string[]; - replied_user?: boolean; -} -export declare const Attachment: { - id: StringConstructor; - filename: StringConstructor; - size: NumberConstructor; - url: StringConstructor; - proxy_url: StringConstructor; - height: NumberConstructor; - width: NumberConstructor; -}; -export declare const EmbedImage: { - url: StringConstructor; - proxy_url: StringConstructor; - height: NumberConstructor; - width: NumberConstructor; -}; -export declare const Embed: { - title: StringConstructor; - type: StringConstructor; - description: StringConstructor; - url: StringConstructor; - timestamp: DateConstructor; - color: NumberConstructor; - footer: { - text: StringConstructor; - icon_url: StringConstructor; - proxy_icon_url: StringConstructor; - }; - image: { - url: StringConstructor; - proxy_url: StringConstructor; - height: NumberConstructor; - width: NumberConstructor; - }; - thumbnail: { - url: StringConstructor; - proxy_url: StringConstructor; - height: NumberConstructor; - width: NumberConstructor; - }; - video: { - url: StringConstructor; - proxy_url: StringConstructor; - height: NumberConstructor; - width: NumberConstructor; - }; - provider: { - name: StringConstructor; - url: StringConstructor; - }; - author: { - name: StringConstructor; - url: StringConstructor; - icon_url: StringConstructor; - proxy_icon_url: StringConstructor; - }; - fields: { - name: StringConstructor; - value: StringConstructor; - inline: BooleanConstructor; - }[]; -}; -export declare const MessageSchema: Schema<Document<any>, import("mongoose").Model<Document<any>>, undefined>; -export declare const MessageModel: import("mongoose").Model<MessageDocument>;