summary refs log tree commit diff
path: root/dist/models
diff options
context:
space:
mode:
Diffstat (limited to 'dist/models')
-rw-r--r--dist/models/Activity.d.ts51
-rw-r--r--dist/models/Activity.js12
-rw-r--r--dist/models/Activity.js.map1
-rw-r--r--dist/models/Application.d.ts39
-rw-r--r--dist/models/Application.js15
-rw-r--r--dist/models/Application.js.map1
-rw-r--r--dist/models/Channel.d.ts45
-rw-r--r--dist/models/Channel.js11
-rw-r--r--dist/models/Channel.js.map2
-rw-r--r--dist/models/Guild.d.ts6
-rw-r--r--dist/models/Interaction.d.ts28
-rw-r--r--dist/models/Interaction.js17
-rw-r--r--dist/models/Interaction.js.map1
-rw-r--r--dist/models/Invite.d.ts5
-rw-r--r--dist/models/Member.d.ts24
-rw-r--r--dist/models/Message.d.ts117
-rw-r--r--dist/models/Message.js24
-rw-r--r--dist/models/Message.js.map1
-rw-r--r--dist/models/Status.d.ts6
-rw-r--r--dist/models/Status.js3
-rw-r--r--dist/models/Status.js.map1
-rw-r--r--dist/models/User.d.ts35
-rw-r--r--dist/models/VoiceState.d.ts13
-rw-r--r--dist/models/VoiceState.js3
-rw-r--r--dist/models/VoiceState.js.map1
25 files changed, 449 insertions, 13 deletions
diff --git a/dist/models/Activity.d.ts b/dist/models/Activity.d.ts
new file mode 100644

index 00000000..65e9d202 --- /dev/null +++ b/dist/models/Activity.d.ts
@@ -0,0 +1,51 @@ +import { User } from ".."; +import { ClientStatus, Status } from "./Status"; +export interface Presence { + user: User; + guild_id: bigint; + status: Status; + activities: Activity[]; + client_status: ClientStatus; +} +export interface Activity { + name: string; + type: ActivityType; + url?: string; + created_at: number; + timestamps?: { + start: number; + end: number; + }[]; + application_id?: bigint; + details?: string; + state?: string; + emoji?: { + name: string; + id?: bigint; + amimated?: boolean; + }; + party?: { + id?: string; + size?: [number, number]; + }; + assets?: { + large_image: string; + large_text: string; + small_image: string; + small_text: string; + }; + secrets?: { + join?: string; + spectate?: string; + match?: string; + }; + instance?: boolean; + flags?: bigint; +} +export declare enum ActivityType { + GAME = 0, + STREAMING = 1, + LISTENING = 2, + CUSTOM = 4, + COMPETING = 5 +} diff --git a/dist/models/Activity.js b/dist/models/Activity.js new file mode 100644
index 00000000..ddb15100 --- /dev/null +++ b/dist/models/Activity.js
@@ -0,0 +1,12 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActivityType = void 0; +var ActivityType; +(function (ActivityType) { + ActivityType[ActivityType["GAME"] = 0] = "GAME"; + ActivityType[ActivityType["STREAMING"] = 1] = "STREAMING"; + ActivityType[ActivityType["LISTENING"] = 2] = "LISTENING"; + ActivityType[ActivityType["CUSTOM"] = 4] = "CUSTOM"; + ActivityType[ActivityType["COMPETING"] = 5] = "COMPETING"; +})(ActivityType = exports.ActivityType || (exports.ActivityType = {})); +//# sourceMappingURL=Activity.js.map \ No newline at end of file diff --git a/dist/models/Activity.js.map b/dist/models/Activity.js.map new file mode 100644
index 00000000..5146d527 --- /dev/null +++ b/dist/models/Activity.js.map
@@ -0,0 +1 @@ +{"version":3,"file":"Activity.js","sourceRoot":"","sources":["../../src/models/Activity.ts"],"names":[],"mappings":";;;AA+CA,IAAY,YAMX;AAND,WAAY,YAAY;IACvB,+CAAQ,CAAA;IACR,yDAAa,CAAA;IACb,yDAAa,CAAA;IACb,mDAAU,CAAA;IACV,yDAAa,CAAA;AACd,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"} \ No newline at end of file diff --git a/dist/models/Application.d.ts b/dist/models/Application.d.ts new file mode 100644
index 00000000..53483c49 --- /dev/null +++ b/dist/models/Application.d.ts
@@ -0,0 +1,39 @@ +export interface ApplicationCommand { + id: bigint; + application_id: bigint; + name: string; + description: string; + options?: ApplicationCommandOption[]; +} +export interface ApplicationCommandOption { + type: ApplicationCommandOptionType; + name: string; + description: string; + required?: boolean; + choices?: ApplicationCommandOptionChoice[]; + options?: ApplicationCommandOption[]; +} +export interface ApplicationCommandOptionChoice { + name: string; + value: string | number; +} +export declare enum ApplicationCommandOptionType { + SUB_COMMAND = 1, + SUB_COMMAND_GROUP = 2, + STRING = 3, + INTEGER = 4, + BOOLEAN = 5, + USER = 6, + CHANNEL = 7, + ROLE = 8 +} +export interface ApplicationCommandInteractionData { + id: bigint; + name: string; + options?: ApplicationCommandInteractionDataOption[]; +} +export interface ApplicationCommandInteractionDataOption { + name: string; + value?: any; + options?: ApplicationCommandInteractionDataOption[]; +} diff --git a/dist/models/Application.js b/dist/models/Application.js new file mode 100644
index 00000000..6981f8a8 --- /dev/null +++ b/dist/models/Application.js
@@ -0,0 +1,15 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ApplicationCommandOptionType = void 0; +var ApplicationCommandOptionType; +(function (ApplicationCommandOptionType) { + ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND"] = 1] = "SUB_COMMAND"; + ApplicationCommandOptionType[ApplicationCommandOptionType["SUB_COMMAND_GROUP"] = 2] = "SUB_COMMAND_GROUP"; + ApplicationCommandOptionType[ApplicationCommandOptionType["STRING"] = 3] = "STRING"; + ApplicationCommandOptionType[ApplicationCommandOptionType["INTEGER"] = 4] = "INTEGER"; + ApplicationCommandOptionType[ApplicationCommandOptionType["BOOLEAN"] = 5] = "BOOLEAN"; + ApplicationCommandOptionType[ApplicationCommandOptionType["USER"] = 6] = "USER"; + ApplicationCommandOptionType[ApplicationCommandOptionType["CHANNEL"] = 7] = "CHANNEL"; + ApplicationCommandOptionType[ApplicationCommandOptionType["ROLE"] = 8] = "ROLE"; +})(ApplicationCommandOptionType = exports.ApplicationCommandOptionType || (exports.ApplicationCommandOptionType = {})); +//# sourceMappingURL=Application.js.map \ No newline at end of file diff --git a/dist/models/Application.js.map b/dist/models/Application.js.map new file mode 100644
index 00000000..083b76f2 --- /dev/null +++ b/dist/models/Application.js.map
@@ -0,0 +1 @@ +{"version":3,"file":"Application.js","sourceRoot":"","sources":["../../src/models/Application.ts"],"names":[],"mappings":";;;AAsBA,IAAY,4BASX;AATD,WAAY,4BAA4B;IACvC,6FAAe,CAAA;IACf,yGAAqB,CAAA;IACrB,mFAAU,CAAA;IACV,qFAAW,CAAA;IACX,qFAAW,CAAA;IACX,+EAAQ,CAAA;IACR,qFAAW,CAAA;IACX,+EAAQ,CAAA;AACT,CAAC,EATW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QASvC"} \ No newline at end of file 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 +} diff --git a/dist/models/Channel.js b/dist/models/Channel.js
index 5d719d95..bb49127d 100644 --- a/dist/models/Channel.js +++ b/dist/models/Channel.js
@@ -1,3 +1,14 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChannelType = void 0; +var ChannelType; +(function (ChannelType) { + ChannelType[ChannelType["GUILD_TEXT"] = 0] = "GUILD_TEXT"; + ChannelType[ChannelType["DM"] = 1] = "DM"; + ChannelType[ChannelType["GUILD_VOICE"] = 2] = "GUILD_VOICE"; + ChannelType[ChannelType["GROUP_DM"] = 3] = "GROUP_DM"; + ChannelType[ChannelType["GUILD_CATEGORY"] = 4] = "GUILD_CATEGORY"; + ChannelType[ChannelType["GUILD_NEWS"] = 5] = "GUILD_NEWS"; + ChannelType[ChannelType["GUILD_STORE"] = 6] = "GUILD_STORE"; +})(ChannelType = exports.ChannelType || (exports.ChannelType = {})); //# sourceMappingURL=Channel.js.map \ No newline at end of file diff --git a/dist/models/Channel.js.map b/dist/models/Channel.js.map
index 982f403e..fdb6f6a0 100644 --- a/dist/models/Channel.js.map +++ b/dist/models/Channel.js.map
@@ -1 +1 @@ -{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../src/models/Channel.ts"],"names":[],"mappings":""} \ No newline at end of file +{"version":3,"file":"Channel.js","sourceRoot":"","sources":["../../src/models/Channel.ts"],"names":[],"mappings":";;;AA6CA,IAAY,WAQX;AARD,WAAY,WAAW;IACtB,yDAAc,CAAA;IACd,yCAAM,CAAA;IACN,2DAAe,CAAA;IACf,qDAAY,CAAA;IACZ,iEAAkB,CAAA;IAClB,yDAAc,CAAA;IACd,2DAAe,CAAA;AAChB,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB"} \ No newline at end of file diff --git a/dist/models/Guild.d.ts b/dist/models/Guild.d.ts
index 4bf9a831..324fc27b 100644 --- a/dist/models/Guild.d.ts +++ b/dist/models/Guild.d.ts
@@ -1,4 +1,4 @@ -import { Channel } from "./Channel"; +import { GuildChannel } from "./Channel"; import { Emoji } from "./Emoji"; import { Member } from "./Member"; import { Role } from "./Role"; @@ -7,13 +7,13 @@ export interface Guild { afk_timeout?: number; application_id?: bigint; banner?: string; - channels: Channel[]; + channels: GuildChannel[]; default_message_notifications?: number; description?: string; discovery_splash?: string; emojis: Emoji[]; explicit_content_filter?: number; - features: []; + features: string[]; icon?: string; id: bigint; large?: boolean; diff --git a/dist/models/Interaction.d.ts b/dist/models/Interaction.d.ts new file mode 100644
index 00000000..df03b8a9 --- /dev/null +++ b/dist/models/Interaction.d.ts
@@ -0,0 +1,28 @@ +import { AllowedMentions, Embed } from "./Message"; +export interface Interaction { + id: bigint; + type: InteractionType; + data?: {}; + guild_id: bigint; + channel_id: bigint; + member_id: bigint; + token: string; + version: number; +} +export declare enum InteractionType { + Ping = 1, + ApplicationCommand = 2 +} +export declare enum InteractionResponseType { + Pong = 1, + Acknowledge = 2, + ChannelMessage = 3, + ChannelMessageWithSource = 4, + AcknowledgeWithSource = 5 +} +export interface InteractionApplicationCommandCallbackData { + tts?: boolean; + content: string; + embeds?: Embed[]; + allowed_mentions?: AllowedMentions; +} diff --git a/dist/models/Interaction.js b/dist/models/Interaction.js new file mode 100644
index 00000000..6985e399 --- /dev/null +++ b/dist/models/Interaction.js
@@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.InteractionResponseType = exports.InteractionType = void 0; +var InteractionType; +(function (InteractionType) { + InteractionType[InteractionType["Ping"] = 1] = "Ping"; + InteractionType[InteractionType["ApplicationCommand"] = 2] = "ApplicationCommand"; +})(InteractionType = exports.InteractionType || (exports.InteractionType = {})); +var InteractionResponseType; +(function (InteractionResponseType) { + InteractionResponseType[InteractionResponseType["Pong"] = 1] = "Pong"; + InteractionResponseType[InteractionResponseType["Acknowledge"] = 2] = "Acknowledge"; + InteractionResponseType[InteractionResponseType["ChannelMessage"] = 3] = "ChannelMessage"; + InteractionResponseType[InteractionResponseType["ChannelMessageWithSource"] = 4] = "ChannelMessageWithSource"; + InteractionResponseType[InteractionResponseType["AcknowledgeWithSource"] = 5] = "AcknowledgeWithSource"; +})(InteractionResponseType = exports.InteractionResponseType || (exports.InteractionResponseType = {})); +//# sourceMappingURL=Interaction.js.map \ No newline at end of file diff --git a/dist/models/Interaction.js.map b/dist/models/Interaction.js.map new file mode 100644
index 00000000..afdf9f9d --- /dev/null +++ b/dist/models/Interaction.js.map
@@ -0,0 +1 @@ +{"version":3,"file":"Interaction.js","sourceRoot":"","sources":["../../src/models/Interaction.ts"],"names":[],"mappings":";;;AAaA,IAAY,eAGX;AAHD,WAAY,eAAe;IAC1B,qDAAQ,CAAA;IACR,iFAAsB,CAAA;AACvB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,IAAY,uBAMX;AAND,WAAY,uBAAuB;IAClC,qEAAQ,CAAA;IACR,mFAAe,CAAA;IACf,yFAAkB,CAAA;IAClB,6GAA4B,CAAA;IAC5B,uGAAyB,CAAA;AAC1B,CAAC,EANW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAMlC"} \ No newline at end of file diff --git a/dist/models/Invite.d.ts b/dist/models/Invite.d.ts
index e68886c6..654d922d 100644 --- a/dist/models/Invite.d.ts +++ b/dist/models/Invite.d.ts
@@ -1,5 +1,10 @@ export interface Invite { code: string; + temporary: boolean; + uses: number; + max_uses: number; + max_age: number; + created_at: number; guild: { id: bigint; name: string; diff --git a/dist/models/Member.d.ts b/dist/models/Member.d.ts
index 927f9337..379bfced 100644 --- a/dist/models/Member.d.ts +++ b/dist/models/Member.d.ts
@@ -1,3 +1,4 @@ +import { PublicUser } from "./User"; export interface Member { id: bigint; nick?: string; @@ -8,4 +9,27 @@ export interface Member { mute: boolean; pending: boolean; permissions: bigint; + settings: UserGuildSettings; +} +export interface PublicMember extends Omit<Member, "settings" | "id"> { + user: PublicUser; +} +export interface UserGuildSettings { + channel_overrides: { + channel_id: bigint; + message_notifications: number; + mute_config: MuteConfig; + muted: boolean; + }[]; + message_notifications: number; + mobile_push: boolean; + mute_config: MuteConfig; + muted: boolean; + suppress_everyone: boolean; + suppress_roles: boolean; + version: number; +} +export interface MuteConfig { + end_time: number; + selected_time_window: number; } diff --git a/dist/models/Message.d.ts b/dist/models/Message.d.ts new file mode 100644
index 00000000..cfbf560e --- /dev/null +++ b/dist/models/Message.d.ts
@@ -0,0 +1,117 @@ +import { ChannelType } from "./Channel"; +export interface Message { + id: bigint; + author_id?: bigint; + webhook_id?: bigint; + application_id: bigint; + content: string; + timestamp: number; + edited_timestamp: number; + tts: boolean; + mention_everyone: boolean; + mentions: bigint[]; + mention_roles: bigint[]; + mention_channels?: { + id: bigint; + guild_id: bigint; + type: ChannelType; + name: 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: bigint; + channel_id?: bigint; + guild_id?: bigint; + }; +} +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: bigint; + 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?: number; + 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?: bigint; + name: string; + animated?: boolean; +} +export interface AllowedMentions { + parse?: ("users" | "roles" | "everyone")[]; + roles?: bigint[]; + users?: bigint[]; + replied_user?: boolean; +} diff --git a/dist/models/Message.js b/dist/models/Message.js new file mode 100644
index 00000000..773de5c2 --- /dev/null +++ b/dist/models/Message.js
@@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MessageType = void 0; +var MessageType; +(function (MessageType) { + MessageType[MessageType["DEFAULT"] = 0] = "DEFAULT"; + MessageType[MessageType["RECIPIENT_ADD"] = 1] = "RECIPIENT_ADD"; + MessageType[MessageType["RECIPIENT_REMOVE"] = 2] = "RECIPIENT_REMOVE"; + MessageType[MessageType["CALL"] = 3] = "CALL"; + MessageType[MessageType["CHANNEL_NAME_CHANGE"] = 4] = "CHANNEL_NAME_CHANGE"; + MessageType[MessageType["CHANNEL_ICON_CHANGE"] = 5] = "CHANNEL_ICON_CHANGE"; + MessageType[MessageType["CHANNEL_PINNED_MESSAGE"] = 6] = "CHANNEL_PINNED_MESSAGE"; + MessageType[MessageType["GUILD_MEMBER_JOIN"] = 7] = "GUILD_MEMBER_JOIN"; + MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION"] = 8] = "USER_PREMIUM_GUILD_SUBSCRIPTION"; + MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1"] = 9] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_1"; + MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2"] = 10] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_2"; + MessageType[MessageType["USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3"] = 11] = "USER_PREMIUM_GUILD_SUBSCRIPTION_TIER_3"; + MessageType[MessageType["CHANNEL_FOLLOW_ADD"] = 12] = "CHANNEL_FOLLOW_ADD"; + MessageType[MessageType["GUILD_DISCOVERY_DISQUALIFIED"] = 14] = "GUILD_DISCOVERY_DISQUALIFIED"; + MessageType[MessageType["GUILD_DISCOVERY_REQUALIFIED"] = 15] = "GUILD_DISCOVERY_REQUALIFIED"; + MessageType[MessageType["REPLY"] = 19] = "REPLY"; + MessageType[MessageType["APPLICATION_COMMAND"] = 20] = "APPLICATION_COMMAND"; +})(MessageType = exports.MessageType || (exports.MessageType = {})); +//# sourceMappingURL=Message.js.map \ No newline at end of file diff --git a/dist/models/Message.js.map b/dist/models/Message.js.map new file mode 100644
index 00000000..94e6c2d2 --- /dev/null +++ b/dist/models/Message.js.map
@@ -0,0 +1 @@ +{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../src/models/Message.ts"],"names":[],"mappings":";;;AAuCA,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACtB,mDAAW,CAAA;IACX,+DAAiB,CAAA;IACjB,qEAAoB,CAAA;IACpB,6CAAQ,CAAA;IACR,2EAAuB,CAAA;IACvB,2EAAuB,CAAA;IACvB,iFAA0B,CAAA;IAC1B,uEAAqB,CAAA;IACrB,mGAAmC,CAAA;IACnC,iHAA0C,CAAA;IAC1C,kHAA2C,CAAA;IAC3C,kHAA2C,CAAA;IAC3C,0EAAuB,CAAA;IACvB,8FAAiC,CAAA;IACjC,4FAAgC,CAAA;IAChC,gDAAU,CAAA;IACV,4EAAwB,CAAA;AACzB,CAAC,EAlBW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAkBtB"} \ No newline at end of file diff --git a/dist/models/Status.d.ts b/dist/models/Status.d.ts new file mode 100644
index 00000000..91494d02 --- /dev/null +++ b/dist/models/Status.d.ts
@@ -0,0 +1,6 @@ +export declare type Status = "idle" | "dnd" | "online" | "offline"; +export interface ClientStatus { + desktop?: string; + mobile?: string; + web?: string; +} diff --git a/dist/models/Status.js b/dist/models/Status.js new file mode 100644
index 00000000..f7c07536 --- /dev/null +++ b/dist/models/Status.js
@@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=Status.js.map \ No newline at end of file diff --git a/dist/models/Status.js.map b/dist/models/Status.js.map new file mode 100644
index 00000000..36fc6d2b --- /dev/null +++ b/dist/models/Status.js.map
@@ -0,0 +1 @@ +{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../src/models/Status.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/models/User.d.ts b/dist/models/User.d.ts
index 5e86a8a3..fad4ccfd 100644 --- a/dist/models/User.d.ts +++ b/dist/models/User.d.ts
@@ -3,17 +3,50 @@ export interface User { username: string; discriminator: string; avatar: string | null; + phone?: string; + desktop: boolean; + mobile: boolean; + premium: boolean; + premium_type: number; bot: boolean; system: boolean; + nsfw_allowed: boolean; mfa_enabled: boolean; created_at: number; verified: boolean; email: string; flags: bigint; + public_flags: bigint; hash: string; + guilds: bigint[]; valid_tokens_since: number; user_settings: UserSettings; - guilds: bigint[]; + relationships: Relationship[]; + connected_accounts: ConnectedAccount[]; +} +export interface PublicUser { + id: bigint; + discriminator: string; + username: string; + avatar?: string; + publicFlags: bigint; +} +export interface ConnectedAccount { + access_token: string; + friend_sync: boolean; + id: string; + name: string; + revoked: boolean; + show_activity: boolean; + type: string; + verifie: boolean; + visibility: number; +} +export interface Relationship { + id: bigint; + nickname?: string; + type: number; + user_id: bigint; } export interface UserSettings { afk_timeout: number; diff --git a/dist/models/VoiceState.d.ts b/dist/models/VoiceState.d.ts new file mode 100644
index 00000000..607d5509 --- /dev/null +++ b/dist/models/VoiceState.d.ts
@@ -0,0 +1,13 @@ +export interface VoiceState { + guild_id?: bigint; + channel_id: bigint; + user_id: bigint; + session_id: string; + deaf: boolean; + mute: boolean; + self_deaf: boolean; + self_mute: boolean; + self_stream?: boolean; + self_video: boolean; + suppress: boolean; +} diff --git a/dist/models/VoiceState.js b/dist/models/VoiceState.js new file mode 100644
index 00000000..f9338233 --- /dev/null +++ b/dist/models/VoiceState.js
@@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=VoiceState.js.map \ No newline at end of file diff --git a/dist/models/VoiceState.js.map b/dist/models/VoiceState.js.map new file mode 100644
index 00000000..13bfc78b --- /dev/null +++ b/dist/models/VoiceState.js.map
@@ -0,0 +1 @@ +{"version":3,"file":"VoiceState.js","sourceRoot":"","sources":["../../src/models/VoiceState.ts"],"names":[],"mappings":""} \ No newline at end of file