Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace <internal>

Index

Namespaces

Enumerations

Enumeration Members

Classes

Interfaces

Type Aliases

Variables

Enumeration Members

ActionRow: 1

Action Row component

ApplicationCommandAutocomplete: 4
Attachment: 11
Boolean: 5
Channel: 7
ChatInput: 1
DM: 1

A direct message between users

Danger: 4
External: 3
GroupDM: 3

A direct message between multiple users

GuildCategory: 4

An organizational category that contains up to 50 channels

GuildForum: 15

A channel that can only contain threads

GuildNews: 5

A channel that users can follow and crosspost into their own guild

GuildNewsThread: 10

A thread channel (public) within a Guild News channel

GuildOnly: 2

The scheduled event is only accessible to guild members

GuildPrivateThread: 12

A private thread channel within a Guild Text channel

GuildPublicThread: 11

A public thread channel within a Guild Text channel

GuildStageVoice: 13

A voice channel for hosting events with an audience

GuildText: 0

A text channel within a guild

GuildVoice: 2

A voice channel within a guild

Integer: 4
Link: 5
Mentionable: 9
MessageComponent: 3
ModalSubmit: 5
Number: 10
Ping: 1
Pinned: 2
Primary: 1
Role: 8
Secondary: 2
SelectMenu: 3

Select Menu component

StageInstance: 1
String: 3
Subcommand: 1
SubcommandGroup: 2
Success: 3
User: 6
Voice: 2

Type Aliases

APIApplicationCommandInteractionDataAttachmentOption: APIInteractionDataOptionBase<Attachment, <internal>.Snowflake>
APIApplicationCommandInteractionDataBooleanOption: APIInteractionDataOptionBase<Boolean, boolean>
APIApplicationCommandInteractionDataChannelOption: APIInteractionDataOptionBase<Channel, <internal>.Snowflake>
APIApplicationCommandInteractionDataMentionableOption: APIInteractionDataOptionBase<Mentionable, <internal>.Snowflake>
APIApplicationCommandInteractionDataRoleOption: APIInteractionDataOptionBase<Role, <internal>.Snowflake>
APIApplicationCommandInteractionDataUserOption: APIInteractionDataOptionBase<User, <internal>.Snowflake>
APIApplicationCommandInteractionWrapper<Data>: APIBaseInteraction<ApplicationCommand, Data> & Required<Pick<APIBaseInteraction<ApplicationCommand, Data>, "channel_id" | "data">>

Type Parameters

APIDMChannel: APIDMChannelBase<DM>
APIDMInteractionWrapper<Original>: Omit<Original, "member" | "guild_id"> & Required<Pick<Original, "user">>

Type Parameters

APIGuildCategoryChannel: APIGuildChannel<GuildCategory>
APIGuildForumChannel: APIGuildTextChannel<GuildForum>
APIMessageActionRowComponent: APIButtonComponent | APISelectMenuComponent
APIMessageButtonInteractionData: APIMessageComponentBaseInteractionData<Button>
APIModalActionRowComponent: APITextInputComponent
APIPingInteraction: Omit<APIBaseInteraction<Ping, never>, "locale">
APIStickerItem: Pick<APISticker, "id" | "name" | "format_type">
Activity: { application_id?: <internal>.Snowflake; assets?: <internal>.ActivityAssets; buttons?: <internal>.ActivityButton[]; created_at: number; details?: string | null; emoji?: <internal>.ActivityEmoji | null; flags?: number; instance?: boolean; name: string; party?: <internal>.ActivityParty; secrets?: <internal>.ActivitySecrets; state?: string | null; timestamps?: <internal>.ActivityTimestamps; type: <internal>.ActivityType; url?: string | null }

Type declaration

ActivityAssets: { large_image?: string; large_text?: string; small_image?: string; small_text?: string }

Type declaration

  • Optional large_image?: string
  • Optional large_text?: string
  • Optional small_image?: string
  • Optional small_text?: string
ActivityButton: { label: string; url: string }

Type declaration

  • label: string
  • url: string
ActivityEmoji: { animated?: boolean; id?: <internal>.Snowflake; name: string }

Type declaration

ActivityParty: { id?: string; size?: [number, number] }

Type declaration

  • Optional id?: string
  • Optional size?: [number, number]
ActivitySecrets: { join?: string; match?: string; spectate?: string }

Type declaration

  • Optional join?: string
  • Optional match?: string
  • Optional spectate?: string
ActivityTimestamps: { end?: number; start?: number }

Type declaration

  • Optional end?: number
  • Optional start?: number
ActivityType: 0 | 1 | 2 | 3 | 4 | 5

Type declaration

Attachment: { content_type?: string; description?: string; ephemeral?: boolean; filename: string; height?: number | null; id: <internal>.Snowflake; proxy_url: string; size: number; url: string; width?: number | null }

Type declaration

  • Optional content_type?: string
  • Optional description?: string
  • Optional ephemeral?: boolean
  • filename: string
  • Optional height?: number | null
  • id: <internal>.Snowflake
  • proxy_url: string
  • size: number
  • url: string
  • Optional width?: number | null
AuditLogChange: { key: string; new_value?: AuditLogValue; old_value?: AuditLogValue }

Type declaration

AuditLogEvent: 1 | 10 | 11 | 12 | 13 | 14 | 15 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 30 | 31 | 32 | 40 | 41 | 42 | 50 | 51 | 52 | 60 | 61 | 62 | 72 | 73 | 74 | 75 | 80 | 81 | 82 | 83 | 84 | 85 | 90 | 91 | 92 | 100 | 101 | 102 | 110 | 111 | 112 | 121
CreateGuildScheduleEvent: Pick<"/home/runner/work/avocord/avocord/node_modules/discord-typings/index", "entity_metadata" | "name" | "privacy_level" | "scheduled_start_time" | "description" | "entity_type"> & { channel_id?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/index"; image?: string; reason?: string; scheduled_end_time?: string }
EditRolePosition: { id: string; position?: number | null; reason?: string } | { id: string; position?: number | null; reason?: string }[]
Emoji: { animated?: boolean; available?: boolean; id: <internal>.Snowflake | null; managed?: boolean; name: string | null; require_colons?: boolean; roles?: <internal>.Snowflake[]; user?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/User" }

Type declaration

Exclude<T, U>: T extends U ? never : T

Exclude from T those types that are assignable to U

Type Parameters

  • T

  • U

Extract<T, U>: T extends U ? T : never

Extract from T those types that are assignable to U

Type Parameters

  • T

  • U

GatewayActivityEmoji: Partial<Pick<APIEmoji, "id" | "animated">> & Pick<APIEmoji, "name">
GatewayEvent: "READY" | "RESUMED" | "APPLICATION_COMMAND_PERMISSIONS_UPDATE" | "CHANNEL_CREATE" | "CHANNEL_UPDATE" | "CHANNEL_DELETE" | "CHANNEL_PINS_UPDATE" | "THREAD_CREATE" | "THREAD_UPDATE" | "THREAD_DELETE" | "THREAD_LIST_SYNC" | "THREAD_MEMBER_UPDATE" | "GUILD_CREATE" | "GUILD_UPDATE" | "GUILD_DELETE" | "GUILD_BAN_ADD" | "GUILD_BAN_REMOVE" | "GUILD_EMOJIS_UPDATE" | "GUILD_STICKERS_UPDATE" | "GUILD_INTEGRATIONS_UPDATE" | "GUILD_MEMBER_ADD" | "GUILD_MEMBER_REMOVE" | "GUILD_MEMBER_UPDATE" | "GUILD_MEMBERS_CHUNK" | "GUILD_ROLE_CREATE" | "GUILD_ROLE_UPDATE" | "GUILD_ROLE_DELETE" | "GUILD_SCHEDULED_EVENT_CREATE" | "GUILD_SCHEDULED_EVENT_UPDATE" | "GUILD_SCHEDULED_EVENT_DELETE" | "GUILD_SCHEDULED_EVENT_USER_ADD" | "GUILD_SCHEDULED_EVENT_USER_REMOVE" | "INTEGRATION_CREATE" | "INTEGRATION_UPDATE" | "INTEGRATION_DELETE" | "INTERACTION_CREATE" | "INVITE_CREATE" | "INVITE_DELETE" | "MESSAGE_CREATE" | "MESSAGE_UPDATE" | "MESSAGE_DELETE" | "MESSAGE_DELETE_BULK" | "MESSAGE_REACTION_ADD" | "MESSAGE_REACTION_REMOVE" | "MESSAGE_REACTION_REMOVE_ALL" | "MESSAGE_REACTION_REMOVE_EMOJI" | "PRESENCE_UPDATE" | "STAGE_INSTANCE_CREATE" | "STAGE_INSTANCE_DELETE" | "STAGE_INSTANCE_UPDATE" | "TYPING_START" | "USER_UPDATE" | "VOICE_STATE_UPDATE" | "VOICE_SERVER_UPDATE" | "WEBHOOKS_UPDATE"
GatewayOpcode: 0 | 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11
GatewayPresenceUpdate: { activities: Pick<<internal>.Activity, "name" | "type" | "url">[]; afk: boolean; since: number | null; status: <internal>.PresenceStatus }

Type declaration

GuildRequestMembersPayload: { guild_id: <internal>.Snowflake; limit: number; nonce?: string; presences?: boolean; query?: string; user_ids?: <internal>.Snowflake[] }

Type declaration

GuildTemplate: { code: string; created_at: string; creator: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/User"; creator_id: <internal>.Snowflake; description: string | null; is_dirty: boolean | null; name: string; serialized_source_guild: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/Guild"; source_guild_id: <internal>.Snowflake; updated_at: string; usage_count: number }

Type declaration

GuildTextChannelType: Exclude<TextChannelType, DM | GroupDM>
HTTPMethod: "get" | "post" | "patch" | "head" | "put" | "delete" | "connect" | "options" | "trace"
HTTPMethod: "get" | "post" | "patch" | "head" | "put" | "delete" | "connect" | "options" | "trace"
IntentResolvable: number | number[] | keyof IntentFlags | (keyof IntentFlags)[]
InteractionCallbackType: 1 | 4 | 5 | 6 | 7 | 8 | 9
InviteMetadata: { created_at: string; max_age: number; max_uses: number; temporary: boolean; uses: number }

Type declaration

  • created_at: string
  • max_age: number
  • max_uses: number
  • temporary: boolean
  • uses: number
InviteTarget: 1 | 2
IteratorResult<T, TReturn>: IteratorYieldResult<T> | IteratorReturnResult<TReturn>

Type Parameters

  • T

  • TReturn = any

Member: { avatar?: string | null; communication_disabled_until?: string | null; deaf: boolean; joined_at: string; mute: boolean; nick?: string | null; pending?: boolean; permissions?: string; premium_since?: string | null; roles?: <internal>.Snowflake[]; user?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/User" }

Type declaration

Message: { activity?: <internal>.MessageActivity; application?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/Application"; application_id?: <internal>.Snowflake; attachments: <internal>.Attachment[]; author: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/User"; channel_id: <internal>.Snowflake; components?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Interactions/MessageComponents"[]; content: string; edited_timestamp: string | null; embeds: <internal>.Embed[]; flags?: number; guild_id?: <internal>.Snowflake; id: <internal>.Snowflake; interaction?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Interactions/ReceivingAndResponding"; member?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/Guild"; mention_channels?: <internal>.ChannelMention[]; mention_everyone: boolean; mention_roles: string[]; mentions?: ("/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/User" & { member: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/Guild" })[]; message_reference?: <internal>.MessageReference; nonce?: string | number; pinned: boolean; reactions?: <internal>.Reaction[]; referenced_message?: <internal>.Message | null; sticker_items?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/Sticker"[]; stickers?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/Sticker"[]; thread?: <internal>.NewsThread | <internal>.PublicThread | <internal>.PrivateThread; timestamp: string; tts: boolean; type?: <internal>.MessageType; webhook_id?: <internal>.Snowflake }

Type declaration

MessageReference: { channel_id?: <internal>.Snowflake; fail_if_not_exists?: boolean; guild_id?: <internal>.Snowflake; message_id?: <internal>.Snowflake }

Type declaration

MessageType: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23
ModalInteractionCallbackData: { components: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Interactions/MessageComponents"[]; custom_id: string; title: string }

Type declaration

Omit<T, K>: Pick<T, Exclude<keyof T, K>>

Construct a type with the properties of T except for those in type K.

Type Parameters

  • T

  • K extends keyof any

OptionalAuditEntryInfo: { channel_id?: <internal>.Snowflake; count?: string; delete_member_days?: string; id?: <internal>.Snowflake; members_removed?: string; message_id?: <internal>.Snowflake; role_name?: string; type?: "0" | "1" }

Type declaration

Overwrite: { allow: string; deny: string; id: <internal>.Snowflake; type: number }

Type declaration

Partial<T>: { [ P in keyof T]?: T[P] }

Make all properties in T optional

Type Parameters

  • T

PartialAPIMessageInteractionGuildMember: Pick<APIGuildMember, "roles" | "premium_since" | "pending" | "nick" | "mute" | "joined_at" | "deaf" | "communication_disabled_until" | "avatar">
PartialEmoji: Pick<<internal>.Emoji, "id" | "name" | "animated">
Pick<T, K>: { [ P in K]: T[P] }

From T, pick a set of properties whose keys are in the union K

Type Parameters

  • T

  • K extends keyof T

PremiumType: 0 | 1 | 2
PresenceStatus: "online" | "dnd" | "idle" | "invisible" | "offline"
PrivacyLevel: 1 | 2
PropertyKey: string | number | symbol
Record<K, T>: { [ P in K]: T }

Construct a type with a set of properties K of type T

Type Parameters

  • K extends keyof any

  • T

Required<T>: { [ P in keyof T]-?: T[P] }

Make all properties in T required

Type Parameters

  • T

Role: { color: number; hoist: boolean; icon?: string | null; id: <internal>.Snowflake; managed: boolean; mentionable: boolean; name: string; permissions: string; position: number; tags: <internal>.RoleTags; unicode_emoji?: string | null }

Type declaration

  • color: number
  • hoist: boolean
  • Optional icon?: string | null
  • id: <internal>.Snowflake
  • managed: boolean
  • mentionable: boolean
  • name: string

    1-100 chars

  • permissions: string
  • position: number
  • tags: <internal>.RoleTags
  • Optional unicode_emoji?: string | null
RoleTags: { bot_id?: <internal>.Snowflake; integration_id?: <internal>.Snowflake; premium_subscriber?: null }

Type declaration

SessionStartLimit: { max_concurrency: number; remaining: number; reset_after: number; total: number }

Type declaration

  • max_concurrency: number
  • remaining: number
  • reset_after: number
  • total: number
Snowflake: string
Snowflake: string
StageInstance: { channel_id: <internal>.Snowflake; discoverable_disabled: boolean; guild_id: <internal>.Snowflake; guild_scheduled_event_id: <internal>.Snowflake | null; id: <internal>.Snowflake; privacy_level: <internal>."/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/StageInstance".PrivacyLevel; topic: string }

Type declaration

StickerFormat: 1 | 2 | 3
StickerType: 1 | 2
ThreadMember: { flags: number; id?: <internal>.Snowflake; join_timestamp: string; user_id?: <internal>.Snowflake }

Type declaration

ThreadMetadata: { archive_timestamp: string; archived: boolean; auto_archive_duration: number; create_timestamp?: string | null; invitable?: boolean; locked: boolean }

Type declaration

  • archive_timestamp: string
  • archived: boolean
  • auto_archive_duration: number
  • Optional create_timestamp?: string | null
  • Optional invitable?: boolean
  • locked: boolean
User: { accent_color?: number | null; avatar: string | null; banner?: string | null; bot?: boolean; discriminator: string; email?: string | null; flags?: number; id: <internal>.Snowflake; locale?: "/home/runner/work/avocord/avocord/node_modules/discord-typings/Reference"; mfa_enabled?: boolean; premium_type?: <internal>."/home/runner/work/avocord/avocord/node_modules/discord-typings/Resources/User".PremiumType; public_flags?: number; system?: boolean; username: string; verified?: boolean }

Type declaration

VoiceRegion: { custom: boolean; deprecated: boolean; id: string; name: string; optimal: boolean }

Type declaration

  • custom: boolean
  • deprecated: boolean
  • id: string
  • name: string
  • optimal: boolean
VoiceStateUpdatePayload: { channel_id: <internal>.Snowflake | null; guild_id: <internal>.Snowflake; self_deaf: boolean; self_mute: boolean }

Type declaration

WebhookType: 1 | 2 | 3

Variables

Object: ObjectConstructor

Provides functionality common to all JavaScript objects.

Generated using TypeDoc