Skip to main content
Version: 0.37.18

discord-api-types/v9

Index

Enumerations

Interfaces

References

Type Aliases

Variables

References

FormattingPatterns

GatewayURLQuery

Re-exports GatewayURLQuery

Locale

Re-exports Locale

LocaleString

Re-exports LocaleString

LocalizationMap

Re-exports LocalizationMap

PermissionFlagsBits

RESTError

Re-exports RESTError

RESTErrorData

Re-exports RESTErrorData

RESTErrorFieldInformation

RESTErrorGroupWrapper

RESTJSONErrorCodes

RESTRateLimit

Re-exports RESTRateLimit

RPCCloseEventCodes

RPCErrorCodes

Re-exports RPCErrorCodes

Snowflake

Re-exports Snowflake

Utils

Renames and re-exports discord-api-types/utils/v9

Type Aliases

APIActionRowComponentTypes

APIApplicationCommandAttachmentOption

APIApplicationCommandAttachmentOption: APIApplicationCommandOptionBase<ApplicationCommandOptionType.Attachment>

APIApplicationCommandAutocompleteDMInteraction

APIApplicationCommandAutocompleteDMInteraction: APIDMInteractionWrapper<APIApplicationCommandAutocompleteInteraction>

APIApplicationCommandAutocompleteGuildInteraction

APIApplicationCommandAutocompleteGuildInteraction: APIGuildInteractionWrapper<APIApplicationCommandAutocompleteInteraction>

APIApplicationCommandAutocompleteInteraction

APIApplicationCommandAutocompleteInteraction: APIBaseInteraction<InteractionType.ApplicationCommandAutocomplete, APIChatInputApplicationCommandInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.ApplicationCommandAutocomplete, Required<Pick<APIChatInputApplicationCommandInteractionData, options>>>, data>>

APIApplicationCommandBasicOption

APIApplicationCommandBooleanOption

APIApplicationCommandBooleanOption: APIApplicationCommandOptionBase<ApplicationCommandOptionType.Boolean>

APIApplicationCommandDMInteraction

APIApplicationCommandGuildInteraction

APIApplicationCommandIntegerOption

APIApplicationCommandIntegerOption: APIApplicationCommandOptionWithAutocompleteOrChoicesWrapper<APIApplicationCommandIntegerOptionBase, APIApplicationCommandOptionChoice<number>>

APIApplicationCommandInteraction

APIApplicationCommandInteractionData

APIApplicationCommandInteractionDataAttachmentOption

APIApplicationCommandInteractionDataAttachmentOption: APIInteractionDataOptionBase<ApplicationCommandOptionType.Attachment, Snowflake>

APIApplicationCommandInteractionDataBasicOption

APIApplicationCommandInteractionDataBooleanOption

APIApplicationCommandInteractionDataBooleanOption: APIInteractionDataOptionBase<ApplicationCommandOptionType.Boolean, boolean>

APIApplicationCommandInteractionDataChannelOption

APIApplicationCommandInteractionDataChannelOption: APIInteractionDataOptionBase<ApplicationCommandOptionType.Channel, Snowflake>

APIApplicationCommandInteractionDataMentionableOption

APIApplicationCommandInteractionDataMentionableOption: APIInteractionDataOptionBase<ApplicationCommandOptionType.Mentionable, Snowflake>

APIApplicationCommandInteractionDataOption

APIApplicationCommandInteractionDataRoleOption

APIApplicationCommandInteractionDataRoleOption: APIInteractionDataOptionBase<ApplicationCommandOptionType.Role, Snowflake>

APIApplicationCommandInteractionDataUserOption

APIApplicationCommandInteractionDataUserOption: APIInteractionDataOptionBase<ApplicationCommandOptionType.User, Snowflake>

APIApplicationCommandInteractionWrapper

APIApplicationCommandInteractionWrapper<Data>: APIBaseInteraction<InteractionType.ApplicationCommand, Data> & Required<Pick<APIBaseInteraction<InteractionType.ApplicationCommand, Data>, channel_id | data>>

APIApplicationCommandMentionableOption

APIApplicationCommandMentionableOption: APIApplicationCommandOptionBase<ApplicationCommandOptionType.Mentionable>

APIApplicationCommandNumberOption

APIApplicationCommandNumberOption: APIApplicationCommandOptionWithAutocompleteOrChoicesWrapper<APIApplicationCommandNumberOptionBase, APIApplicationCommandOptionChoice<number>>

APIApplicationCommandOption

APIApplicationCommandOptionWithAutocompleteOrChoicesWrapper

APIApplicationCommandOptionWithAutocompleteOrChoicesWrapper<Base, ChoiceType>: (Base & { autocomplete: true }) | (Base & { autocomplete?: false; choices?: ChoiceType[] })

APIApplicationCommandRoleOption

APIApplicationCommandRoleOption: APIApplicationCommandOptionBase<ApplicationCommandOptionType.Role>

APIApplicationCommandStringOption

APIApplicationCommandStringOption: APIApplicationCommandOptionWithAutocompleteOrChoicesWrapper<APIApplicationCommandStringOptionBase, APIApplicationCommandOptionChoice<string>>

APIApplicationCommandUserOption

APIApplicationCommandUserOption: APIApplicationCommandOptionBase<ApplicationCommandOptionType.User>

APIAuditLogChange

APIAuditLogChange: APIAuditLogChangeKeyName | APIAuditLogChangeKeyDescription | APIAuditLogChangeKeyIconHash | APIAuditLogChangeKeyImageHash | APIAuditLogChangeKeySplashHash | APIAuditLogChangeKeyDiscoverySplashHash | APIAuditLogChangeKeyBannerHash | APIAuditLogChangeKeyOwnerId | APIAuditLogChangeKeyRegion | APIAuditLogChangeKeyPreferredLocale | APIAuditLogChangeKeyAFKChannelId | APIAuditLogChangeKeyAFKTimeout | APIAuditLogChangeKeyRulesChannelId | APIAuditLogChangeKeyPublicUpdatesChannelId | APIAuditLogChangeKeyMFALevel | APIAuditLogChangeKeyVerificationLevel | APIAuditLogChangeKeyExplicitContentFilter | APIAuditLogChangeKeyDefaultMessageNotifications | APIAuditLogChangeKeyVanityURLCode | APIAuditLogChangeKey$Add | APIAuditLogChangeKey$Remove | APIAuditLogChangeKeyPruneDeleteDays | APIAuditLogChangeKeyWidgetEnabled | APIAuditLogChangeKeyWidgetChannelId | APIAuditLogChangeKeySystemChannelId | APIAuditLogChangeKeyPosition | APIAuditLogChangeKeyTopic | APIAuditLogChangeKeyBitrate | APIAuditLogChangeKeyPermissionOverwrites | APIAuditLogChangeKeyNSFW | APIAuditLogChangeKeyApplicationId | APIAuditLogChangeKeyRateLimitPerUser | APIAuditLogChangeKeyPermissions | APIAuditLogChangeKeyColor | APIAuditLogChangeKeyHoist | APIAuditLogChangeKeyMentionable | APIAuditLogChangeKeyAllow | APIAuditLogChangeKeyDeny | APIAuditLogChangeKeyCode | APIAuditLogChangeKeyChannelId | APIAuditLogChangeKeyInviterId | APIAuditLogChangeKeyMaxUses | APIAuditLogChangeKeyUses | APIAuditLogChangeKeyMaxAge | APIAuditLogChangeKeyTemporary | APIAuditLogChangeKeyDeaf | APIAuditLogChangeKeyMute | APIAuditLogChangeKeyNick | APIAuditLogChangeKeyAvatarHash | APIAuditLogChangeKeyId | APIAuditLogChangeKeyType | APIAuditLogChangeKeyEnableEmoticons | APIAuditLogChangeKeyExpireBehavior | APIAuditLogChangeKeyExpireGracePeriod | APIAuditLogChangeKeyUserLimit | APIAuditLogChangeKeyPrivacyLevel | APIAuditLogChangeKeyTags | APIAuditLogChangeKeyFormatType | APIAuditLogChangeKeyAsset | APIAuditLogChangeKeyAvailable | APIAuditLogChangeKeyGuildId | APIAuditLogChangeKeyArchived | APIAuditLogChangeKeyLocked | APIAuditLogChangeKeyAutoArchiveDuration | APIAuditLogChangeKeyDefaultAutoArchiveDuration | APIAuditLogChangeKeyEntityType | APIAuditLogChangeKeyStatus | APIAuditLogChangeKeyLocation | APIAuditLogChangeKeyCommunicationDisabledUntil | APIAuditLogChangeKeyTriggerType | APIAuditLogChangeKeyEventType | APIAuditLogChangeKeyTriggerMetadata | APIAuditLogChangeKeyActions | APIAuditLogChangeKeyEnabled | APIAuditLogChangeKeyExemptRoles | APIAuditLogChangeKeyExemptChannels

APIAuditLogChangeKey$Add

APIAuditLogChangeKey$Add: AuditLogChangeData<$add, APIRole[]>

Returned when new role(s) are added

APIAuditLogChangeKey$Remove

APIAuditLogChangeKey$Remove: AuditLogChangeData<$remove, APIRole[]>

Returned when role(s) are removed

APIAuditLogChangeKeyAFKChannelId

APIAuditLogChangeKeyAFKChannelId: AuditLogChangeData<afk_channel_id, Snowflake>

Returned when a guild’s afk_channel_id is changed

APIAuditLogChangeKeyAFKTimeout

APIAuditLogChangeKeyAFKTimeout: AuditLogChangeData<afk_timeout, number>

Returned when a guild’s afk_timeout is changed

APIAuditLogChangeKeyActions

APIAuditLogChangeKeyActions: AuditLogChangeData<actions, APIAutoModerationAction[]>

Returned when an auto moderation rule’s actions is changed

APIAuditLogChangeKeyAllow

APIAuditLogChangeKeyAllow: AuditLogChangeData<allow, string>

Returned when an overwrite’s allowed permissions bitfield is changed

APIAuditLogChangeKeyApplicationId

APIAuditLogChangeKeyApplicationId: AuditLogChangeData<application_id, Snowflake>

The application ID of the added or removed Webhook or Bot

APIAuditLogChangeKeyArchived

APIAuditLogChangeKeyArchived: AuditLogChangeData<archived, boolean>

APIAuditLogChangeKeyAsset

APIAuditLogChangeKeyAsset: AuditLogChangeData<asset, >

Empty string

APIAuditLogChangeKeyAutoArchiveDuration

APIAuditLogChangeKeyAutoArchiveDuration: AuditLogChangeData<auto_archive_duration, number>

APIAuditLogChangeKeyAvailable

APIAuditLogChangeKeyAvailable: AuditLogChangeData<available, boolean>

Returned when a sticker’s availability is changed

APIAuditLogChangeKeyAvatarHash

APIAuditLogChangeKeyAvatarHash: AuditLogChangeData<avatar_hash, string>

Returned when a user’s avatar_hash is changed

APIAuditLogChangeKeyBannerHash

APIAuditLogChangeKeyBannerHash: AuditLogChangeData<banner_hash, string>

Returned when a guild’s banner hash is changed

APIAuditLogChangeKeyBitrate

APIAuditLogChangeKeyBitrate: AuditLogChangeData<bitrate, number>

Returned when a voice channel’s bitrate is changed

APIAuditLogChangeKeyChannelId

APIAuditLogChangeKeyChannelId: AuditLogChangeData<channel_id, Snowflake>

Returned when an invite’s or guild scheduled event’s channel_id is changed

APIAuditLogChangeKeyCode

APIAuditLogChangeKeyCode: AuditLogChangeData<code, string>

Returned when an invite’s code is changed

APIAuditLogChangeKeyColor

APIAuditLogChangeKeyColor: AuditLogChangeData<color, number>

Returned when a role’s color is changed

APIAuditLogChangeKeyCommunicationDisabledUntil

APIAuditLogChangeKeyCommunicationDisabledUntil: AuditLogChangeData<communication_disabled_until, string>

Returned when a user’s timeout is changed

APIAuditLogChangeKeyDeaf

APIAuditLogChangeKeyDeaf: AuditLogChangeData<deaf, boolean>

Returned when a user’s deaf status is changed

APIAuditLogChangeKeyDefaultAutoArchiveDuration

APIAuditLogChangeKeyDefaultAutoArchiveDuration: AuditLogChangeData<default_auto_archive_duration, number>

APIAuditLogChangeKeyDefaultMessageNotifications

APIAuditLogChangeKeyDefaultMessageNotifications: AuditLogChangeData<default_message_notifications, GuildDefaultMessageNotifications>

Returned when a guild’s default_message_notifications is changed

APIAuditLogChangeKeyDeny

APIAuditLogChangeKeyDeny: AuditLogChangeData<deny, string>

Returned when an overwrite’s denied permissions bitfield is changed

APIAuditLogChangeKeyDescription

APIAuditLogChangeKeyDescription: AuditLogChangeData<description, string>

Returned when a guild’s or sticker’s or guild scheduled event’s description is changed

APIAuditLogChangeKeyDiscoverySplashHash

APIAuditLogChangeKeyDiscoverySplashHash: AuditLogChangeData<discovery_splash_hash, string>

Returned when a guild’s discovery splash is changed

APIAuditLogChangeKeyEnableEmoticons

APIAuditLogChangeKeyEnableEmoticons: AuditLogChangeData<enable_emoticons, boolean>

Returned when an integration’s enable_emoticons is changed

APIAuditLogChangeKeyEnabled

APIAuditLogChangeKeyEnabled: AuditLogChangeData<enabled, boolean>

Returned when an auto moderation rule’s enabled status is changed

APIAuditLogChangeKeyEntityType

APIAuditLogChangeKeyEntityType: AuditLogChangeData<entity_type, GuildScheduledEventEntityType>

Returned when entity type of a guild scheduled event is changed

APIAuditLogChangeKeyEventType

APIAuditLogChangeKeyEventType: AuditLogChangeData<event_type, AutoModerationRuleEventType>

Returned when an auto moderation rule’s event type is changed

APIAuditLogChangeKeyExemptChannels

APIAuditLogChangeKeyExemptChannels: AuditLogChangeData<exempt_channels, Snowflake[]>

Returned when an auto moderation rule’s exempt channels is changed

APIAuditLogChangeKeyExemptRoles

APIAuditLogChangeKeyExemptRoles: AuditLogChangeData<exempt_roles, Snowflake[]>

Returned when an auto moderation rule’s exempt roles is changed

APIAuditLogChangeKeyExpireBehavior

APIAuditLogChangeKeyExpireBehavior: AuditLogChangeData<expire_behavior, IntegrationExpireBehavior>

Returned when an integration’s expire_behavior is changed

APIAuditLogChangeKeyExpireGracePeriod

APIAuditLogChangeKeyExpireGracePeriod: AuditLogChangeData<expire_grace_period, number>

Returned when an integration’s expire_grace_period is changed

APIAuditLogChangeKeyExplicitContentFilter

APIAuditLogChangeKeyExplicitContentFilter: AuditLogChangeData<explicit_content_filter, GuildExplicitContentFilter>

Returned when a guild’s explicit_content_filter is changed

APIAuditLogChangeKeyFormatType

APIAuditLogChangeKeyFormatType: AuditLogChangeData<format_type, StickerFormatType>

Returned when a sticker’s format_type is changed

APIAuditLogChangeKeyGuildId

APIAuditLogChangeKeyGuildId: AuditLogChangeData<guild_id, Snowflake>

Returned when a sticker’s guild_id is changed

APIAuditLogChangeKeyHoist

APIAuditLogChangeKeyHoist: AuditLogChangeData<hoist, boolean>

Returned when a role’s hoist status is changed

APIAuditLogChangeKeyIconHash

APIAuditLogChangeKeyIconHash: AuditLogChangeData<icon_hash, string>

Returned when a guild’s icon is changed

APIAuditLogChangeKeyId

APIAuditLogChangeKeyId: AuditLogChangeData<id, Snowflake>

The ID of the changed entity - sometimes used in conjunction with other keys

APIAuditLogChangeKeyImageHash

APIAuditLogChangeKeyImageHash: AuditLogChangeData<image_hash, string>

Returned when a guild’s scheduled event’s cover image is changed

APIAuditLogChangeKeyInviterId

APIAuditLogChangeKeyInviterId: AuditLogChangeData<inviter_id, Snowflake>

Returned when an invite’s inviter_id is changed

APIAuditLogChangeKeyLocation

APIAuditLogChangeKeyLocation: AuditLogChangeData<location, string>

Returned when location of a guild scheduled event is changed

APIAuditLogChangeKeyLocked

APIAuditLogChangeKeyLocked: AuditLogChangeData<locked, boolean>

APIAuditLogChangeKeyMFALevel

APIAuditLogChangeKeyMFALevel: AuditLogChangeData<mfa_level, GuildMFALevel>

Returned when a guild’s mfa_level is changed

APIAuditLogChangeKeyMaxAge

APIAuditLogChangeKeyMaxAge: AuditLogChangeData<max_age, number>

Returned when an invite’s max_age is changed

APIAuditLogChangeKeyMaxUses

APIAuditLogChangeKeyMaxUses: AuditLogChangeData<max_uses, number>

Returned when an invite’s max_uses is changed

APIAuditLogChangeKeyMentionable

APIAuditLogChangeKeyMentionable: AuditLogChangeData<mentionable, boolean>

Returned when a role’s mentionable status is changed

APIAuditLogChangeKeyMute

APIAuditLogChangeKeyMute: AuditLogChangeData<mute, boolean>

Returned when a user’s mute status is changed

APIAuditLogChangeKeyNSFW

APIAuditLogChangeKeyNSFW: AuditLogChangeData<nsfw, boolean>

Returned when a channel’s NSFW restriction is changed

APIAuditLogChangeKeyName

APIAuditLogChangeKeyName: AuditLogChangeData<name, string>

Returned when an entity’s name is changed

APIAuditLogChangeKeyNick

APIAuditLogChangeKeyNick: AuditLogChangeData<nick, string>

Returned when a user’s nick is changed

APIAuditLogChangeKeyOwnerId

APIAuditLogChangeKeyOwnerId: AuditLogChangeData<owner_id, Snowflake>

Returned when a guild’s owner_id is changed

APIAuditLogChangeKeyPermissionOverwrites

APIAuditLogChangeKeyPermissionOverwrites: AuditLogChangeData<permission_overwrites, APIOverwrite[]>

Returned when a channel’s permission overwrites is changed

APIAuditLogChangeKeyPermissions

APIAuditLogChangeKeyPermissions: AuditLogChangeData<permissions, string>

Returned when a permission bitfield is changed

APIAuditLogChangeKeyPosition

APIAuditLogChangeKeyPosition: AuditLogChangeData<position, number>

Returned when a channel’s position is changed

APIAuditLogChangeKeyPreferredLocale

APIAuditLogChangeKeyPreferredLocale: AuditLogChangeData<preferred_locale, string>

Returned when a guild’s preferred_locale is changed

APIAuditLogChangeKeyPrivacyLevel

APIAuditLogChangeKeyPrivacyLevel: AuditLogChangeData<privacy_level, StageInstancePrivacyLevel>

Returned when privacy level of a stage instance or guild scheduled event is changed

APIAuditLogChangeKeyPruneDeleteDays

APIAuditLogChangeKeyPruneDeleteDays: AuditLogChangeData<prune_delete_days, number>

Returned when there is a change in number of days after which inactive and role-unassigned members are kicked

APIAuditLogChangeKeyPublicUpdatesChannelId

APIAuditLogChangeKeyPublicUpdatesChannelId: AuditLogChangeData<public_updates_channel_id, string>

Returned when a guild’s public_updates_channel_id is changed

APIAuditLogChangeKeyRateLimitPerUser

APIAuditLogChangeKeyRateLimitPerUser: AuditLogChangeData<rate_limit_per_user, number>

Returned when a channel’s amount of seconds a user has to wait before sending another message is changed

APIAuditLogChangeKeyRegion

APIAuditLogChangeKeyRegion: AuditLogChangeData<region, string>

Returned when a guild’s region is changed

APIAuditLogChangeKeyRulesChannelId

APIAuditLogChangeKeyRulesChannelId: AuditLogChangeData<rules_channel_id, string>

Returned when a guild’s rules_channel_id is changed

APIAuditLogChangeKeySnowflake

APIAuditLogChangeKeySnowflake: AuditLogChangeData<Snowflake, unknown>

Represents a change where the key is a snowflake. Currently, the only known instance of this is returned when permissions for a command were updated (

<insert name of object here>
)

APIAuditLogChangeKeySplashHash

APIAuditLogChangeKeySplashHash: AuditLogChangeData<splash_hash, string>

Returned when a guild’s splash is changed

APIAuditLogChangeKeyStatus

APIAuditLogChangeKeyStatus: AuditLogChangeData<status, GuildScheduledEventStatus>

Returned when status of a guild scheduled event is changed

APIAuditLogChangeKeySystemChannelId

APIAuditLogChangeKeySystemChannelId: AuditLogChangeData<system_channel_id, Snowflake>

Returned when a guild’s system_channel_id is changed

APIAuditLogChangeKeyTags

APIAuditLogChangeKeyTags: AuditLogChangeData<tags, string>

Returned when a sticker’s related emoji is changed

APIAuditLogChangeKeyTemporary

APIAuditLogChangeKeyTemporary: AuditLogChangeData<temporary, boolean>

Returned when an invite’s temporary status is changed

APIAuditLogChangeKeyTopic

APIAuditLogChangeKeyTopic: AuditLogChangeData<topic, string>

Returned when a channel’s topic is changed

APIAuditLogChangeKeyTriggerMetadata

APIAuditLogChangeKeyTriggerMetadata: AuditLogChangeData<trigger_metadata, APIAutoModerationRuleTriggerMetadata>

Returned when an auto moderation rule’s trigger metadata is changed

APIAuditLogChangeKeyTriggerType

APIAuditLogChangeKeyTriggerType: AuditLogChangeData<trigger_type, AutoModerationRuleTriggerType>

Returned when an auto moderation rule’s trigger type is changed (only in rule creation or deletion)

APIAuditLogChangeKeyType

APIAuditLogChangeKeyType: AuditLogChangeData<type, number | string>

The type of entity created

APIAuditLogChangeKeyUserLimit

APIAuditLogChangeKeyUserLimit: AuditLogChangeData<user_limit, number>

Returned when a voice channel’s user_limit is changed

APIAuditLogChangeKeyUses

APIAuditLogChangeKeyUses: AuditLogChangeData<uses, number>

Returned when an invite’s uses is changed

APIAuditLogChangeKeyVanityURLCode

APIAuditLogChangeKeyVanityURLCode: AuditLogChangeData<vanity_url_code, string>

Returned when a guild’s vanity_url_code is changed

APIAuditLogChangeKeyVerificationLevel

APIAuditLogChangeKeyVerificationLevel: AuditLogChangeData<verification_level, GuildVerificationLevel>

Returned when a guild’s verification_level is changed

APIAuditLogChangeKeyWidgetChannelId

APIAuditLogChangeKeyWidgetChannelId: AuditLogChangeData<widget_channel_id, Snowflake>

Returned when a guild’s widget_channel_id is changed

APIAuditLogChangeKeyWidgetEnabled

APIAuditLogChangeKeyWidgetEnabled: AuditLogChangeData<widget_enabled, boolean>

Returned when a guild’s widget is enabled

APIButtonComponent

APIChannel

APIChatInputApplicationCommandDMInteraction

APIChatInputApplicationCommandDMInteraction: APIDMInteractionWrapper<APIChatInputApplicationCommandInteraction>

APIChatInputApplicationCommandGuildInteraction

APIChatInputApplicationCommandGuildInteraction: APIGuildInteractionWrapper<APIChatInputApplicationCommandInteraction>

APIChatInputApplicationCommandInteraction

APIChatInputApplicationCommandInteractionDataResolved

APIChatInputApplicationCommandInteractionDataResolved: APIInteractionDataResolved
@deprecated

Renamed to APIInteractionDataResolved

APIContextMenuDMInteraction

APIContextMenuGuildInteraction

APIContextMenuInteraction

APIContextMenuInteractionData

APIDMChannel

APIDMChannel: APIDMChannelBase<ChannelType.DM>

APIDMInteraction

APIDMInteractionWrapper

APIDMInteractionWrapper<Original>: Omit<Original, member | guild_id> & Required<Pick<Original, user>>

Type parameters

APIGuildCategoryChannel

APIGuildCategoryChannel: APIGuildChannel<ChannelType.GuildCategory>

APIGuildChannelResolvable

APIGuildChannelResolvable: Exclude<APIChannel, APIDMChannel | APIGroupDMChannel>

APIGuildCreatePartialChannel

APIGuildCreatePartialChannel: StrictPartial<DistributivePick<APIGuildChannelResolvable, type | topic | nsfw | bitrate | user_limit | rate_limit_per_user | default_auto_archive_duration | position | rtc_region | video_quality_mode | flags | default_reaction_emoji | available_tags | default_sort_order>> & AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ id?: number | string; name: string; parent_id?: number | string | null; permission_overwrites?: APIGuildCreateOverwrite[] }>

APIGuildIntegrationType

APIGuildIntegrationType: twitch | youtube | discord

APIGuildInteraction

APIGuildInteractionWrapper

APIGuildInteractionWrapper<Original>: Omit<Original, user> & Required<Pick<Original, member | guild_id>>

Type parameters

APIGuildScheduledEvent

APIGuildStageVoiceChannel

APIGuildStageVoiceChannel: APIVoiceChannelBase<ChannelType.GuildStageVoice>

APIInteraction

APIInteractionResponse

APIInteractionResponseCallbackData

APIInteractionResponseCallbackData: Omit<RESTPostAPIWebhookWithTokenJSONBody, username | avatar_url> & { flags?: MessageFlags }

APIInviteGuild

APIInviteGuild: Pick<APIGuild, id | name | splash | banner | icon | vanity_url_code | description | features | verification_level | nsfw_level | premium_subscription_count>

APIMentionableSelectComponent

APIMentionableSelectComponent: APIBaseSelectMenuComponent<ComponentType.MentionableSelect>

APIMessageActionRowComponent

APIMessageActionRowComponent: APIButtonComponent | APISelectMenuComponent

APIMessageApplicationCommandDMInteraction

APIMessageApplicationCommandDMInteraction: APIDMInteractionWrapper<APIMessageApplicationCommandInteraction>

APIMessageApplicationCommandGuildInteraction

APIMessageApplicationCommandGuildInteraction: APIGuildInteractionWrapper<APIMessageApplicationCommandInteraction>

APIMessageApplicationCommandInteraction

APIMessageButtonInteractionData

APIMessageButtonInteractionData: APIMessageComponentBaseInteractionData<ComponentType.Button>

APIMessageComponent

APIMessageComponentButtonInteraction

APIMessageComponentButtonInteraction: APIBaseInteraction<InteractionType.MessageComponent, APIMessageButtonInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageButtonInteractionData>, channel_id | data | message>>

APIMessageComponentDMInteraction

APIMessageComponentDMInteraction: APIDMInteractionWrapper<APIMessageComponentInteraction>

APIMessageComponentGuildInteraction

APIMessageComponentGuildInteraction: APIGuildInteractionWrapper<APIMessageComponentInteraction>

APIMessageComponentInteraction

APIMessageComponentInteraction: APIBaseInteraction<InteractionType.MessageComponent, APIMessageComponentInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageComponentInteractionData>, channel_id | data | message>>

APIMessageComponentInteractionData

APIMessageComponentSelectMenuInteraction

APIMessageComponentSelectMenuInteraction: APIBaseInteraction<InteractionType.MessageComponent, APIMessageSelectMenuInteractionData> & Required<Pick<APIBaseInteraction<InteractionType.MessageComponent, APIMessageSelectMenuInteractionData>, channel_id | data | message>>

APIMessageReferenceSend

APIMessageReferenceSend: StrictPartial<APIMessageReference> & Required<Pick<APIMessageReference, message_id>> & AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ fail_if_not_exists?: boolean }>

APIMessageSelectMenuInteractionData

APIModalActionRowComponent

APIModalActionRowComponent: APITextInputComponent

APIModalComponent

APIModalSubmitDMInteraction

APIModalSubmitGuildInteraction

APIModalSubmitGuildInteraction: APIGuildInteractionWrapper<APIModalSubmitInteraction>

APIModalSubmitInteraction

APIModalSubmitInteraction: APIBaseInteraction<InteractionType.ModalSubmit, APIModalSubmission> & Required<Pick<APIBaseInteraction<InteractionType.ModalSubmit, APIModalSubmission>, data>>

APINewsChannel

APINewsChannel: APIGuildTextChannel<ChannelType.GuildAnnouncement>

APIPingInteraction

APIPingInteraction: Omit<APIBaseInteraction<InteractionType.Ping, never>, locale>

APIRoleSelectComponent

APIRoleSelectComponent: APIBaseSelectMenuComponent<ComponentType.RoleSelect>

APISelectMenuComponent

APIStickerItem

APIStickerItem: Pick<APISticker, id | name | format_type>

APITextChannel

APITextChannel: APIGuildTextChannel<ChannelType.GuildText>

APIUserApplicationCommandDMInteraction

APIUserApplicationCommandDMInteraction: APIDMInteractionWrapper<APIUserApplicationCommandInteraction>

APIUserApplicationCommandGuildInteraction

APIUserApplicationCommandGuildInteraction: APIGuildInteractionWrapper<APIUserApplicationCommandInteraction>

APIUserApplicationCommandInteraction

APIUserApplicationCommandInteractionDataResolved

APIUserApplicationCommandInteractionDataResolved: APIUserInteractionDataResolved
@deprecated

Renamed to APIUserInteractionDataResolved

APIUserInteractionDataResolved

APIUserInteractionDataResolved: Required<Pick<APIInteractionDataResolved, users>> & Pick<APIInteractionDataResolved, members>

users and optional members from APIInteractionDataResolved, for user commands and user selects

APIUserSelectComponent

APIUserSelectComponent: APIBaseSelectMenuComponent<ComponentType.UserSelect>

AchievementIconFormat

AchievementIconFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

ApplicationAssetFormat

ApplicationAssetFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

ApplicationCoverFormat

ApplicationCoverFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

ApplicationIconFormat

ApplicationIconFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

AuditLogRuleTriggerType

AuditLogRuleTriggerType: `${AutoModerationRuleTriggerType}`

DefaultUserAvatar

DefaultUserAvatar: Extract<ImageFormat, ImageFormat.PNG>

DefaultUserAvatarAssets

DefaultUserAvatarAssets: 0 | 1 | 2 | 3 | 4 | 5

EmojiFormat

EmojiFormat: Exclude<ImageFormat, ImageFormat.Lottie>

GatewayActivityAssets

GatewayActivityAssets: Partial<Record<large_image | large_text | small_image | small_text, string>>

GatewayActivityEmoji

GatewayActivityEmoji: Partial<Pick<APIEmoji, id | animated>> & Pick<APIEmoji, name>

GatewayActivitySecrets

GatewayActivitySecrets: Partial<Record<join | spectate | match, string>>

GatewayActivityUpdateData

GatewayActivityUpdateData: Pick<GatewayActivity, name | type | url>

GatewayApplicationCommandPermissionsUpdateDispatch

GatewayApplicationCommandPermissionsUpdateDispatch: DataPayload<GatewayDispatchEvents.ApplicationCommandPermissionsUpdate, GatewayApplicationCommandPermissionsUpdateDispatchData>

GatewayAutoModerationActionExecutionDispatch

GatewayAutoModerationActionExecutionDispatch: DataPayload<GatewayDispatchEvents.AutoModerationActionExecution, GatewayAutoModerationActionExecutionDispatchData>

GatewayAutoModerationRuleCreateDispatch

GatewayAutoModerationRuleCreateDispatch: GatewayAutoModerationRuleModifyDispatch

GatewayAutoModerationRuleCreateDispatchData

GatewayAutoModerationRuleCreateDispatchData: GatewayAutoModerationRuleModifyDispatchData

GatewayAutoModerationRuleDeleteDispatch

GatewayAutoModerationRuleDeleteDispatch: GatewayAutoModerationRuleModifyDispatch

GatewayAutoModerationRuleDeleteDispatchData

GatewayAutoModerationRuleDeleteDispatchData: GatewayAutoModerationRuleModifyDispatchData

GatewayAutoModerationRuleModifyDispatch

GatewayAutoModerationRuleModifyDispatch: DataPayload<GatewayDispatchEvents.AutoModerationRuleCreate | GatewayDispatchEvents.AutoModerationRuleUpdate | GatewayDispatchEvents.AutoModerationRuleDelete, GatewayAutoModerationRuleModifyDispatchData>

GatewayAutoModerationRuleModifyDispatchData

GatewayAutoModerationRuleModifyDispatchData: APIAutoModerationRule

GatewayAutoModerationRuleUpdateDispatch

GatewayAutoModerationRuleUpdateDispatch: GatewayAutoModerationRuleModifyDispatch

GatewayAutoModerationRuleUpdateDispatchData

GatewayAutoModerationRuleUpdateDispatchData: GatewayAutoModerationRuleModifyDispatchData

GatewayChannelCreateDispatch

GatewayChannelCreateDispatch: GatewayChannelModifyDispatch

GatewayChannelCreateDispatchData

GatewayChannelCreateDispatchData: GatewayChannelModifyDispatchData

GatewayChannelDeleteDispatch

GatewayChannelDeleteDispatch: GatewayChannelModifyDispatch

GatewayChannelDeleteDispatchData

GatewayChannelDeleteDispatchData: GatewayChannelModifyDispatchData

GatewayChannelModifyDispatch

GatewayChannelModifyDispatch: DataPayload<GatewayDispatchEvents.ChannelCreate | GatewayDispatchEvents.ChannelDelete | GatewayDispatchEvents.ChannelUpdate, GatewayChannelModifyDispatchData>

GatewayChannelModifyDispatchData

GatewayChannelModifyDispatchData: APIChannel

GatewayChannelPinsUpdateDispatch

GatewayChannelPinsUpdateDispatch: DataPayload<GatewayDispatchEvents.ChannelPinsUpdate, GatewayChannelPinsUpdateDispatchData>

GatewayChannelUpdateDispatch

GatewayChannelUpdateDispatch: GatewayChannelModifyDispatch

GatewayChannelUpdateDispatchData

GatewayChannelUpdateDispatchData: GatewayChannelModifyDispatchData

GatewayDispatchPayload

GatewayDispatchPayload: GatewayApplicationCommandPermissionsUpdateDispatch | GatewayAutoModerationRuleModifyDispatch | GatewayAutoModerationRuleCreateDispatch | GatewayAutoModerationRuleDeleteDispatch | GatewayAutoModerationActionExecutionDispatch | GatewayChannelModifyDispatch | GatewayChannelPinsUpdateDispatch | GatewayGuildBanModifyDispatch | GatewayGuildCreateDispatch | GatewayGuildDeleteDispatch | GatewayGuildEmojisUpdateDispatch | GatewayGuildIntegrationsUpdateDispatch | GatewayGuildMemberAddDispatch | GatewayGuildMemberRemoveDispatch | GatewayGuildMembersChunkDispatch | GatewayGuildMemberUpdateDispatch | GatewayGuildModifyDispatch | GatewayGuildRoleDeleteDispatch | GatewayGuildRoleModifyDispatch | GatewayGuildScheduledEventCreateDispatch | GatewayGuildScheduledEventUpdateDispatch | GatewayGuildScheduledEventDeleteDispatch | GatewayGuildScheduledEventUserAddDispatch | GatewayGuildScheduledEventUserRemoveDispatch | GatewayGuildStickersUpdateDispatch | GatewayIntegrationCreateDispatch | GatewayIntegrationDeleteDispatch | GatewayIntegrationUpdateDispatch | GatewayInteractionCreateDispatch | GatewayInviteCreateDispatch | GatewayInviteDeleteDispatch | GatewayMessageCreateDispatch | GatewayMessageDeleteBulkDispatch | GatewayMessageDeleteDispatch | GatewayMessageReactionAddDispatch | GatewayMessageReactionRemoveAllDispatch | GatewayMessageReactionRemoveDispatch | GatewayMessageReactionRemoveEmojiDispatch | GatewayMessageUpdateDispatch | GatewayPresenceUpdateDispatch | GatewayStageInstanceCreateDispatch | GatewayStageInstanceDeleteDispatch | GatewayStageInstanceUpdateDispatch | GatewayReadyDispatch | GatewayResumedDispatch | GatewayThreadListSyncDispatch | GatewayThreadMembersUpdateDispatch | GatewayThreadMemberUpdateDispatch | GatewayThreadModifyDispatch | GatewayTypingStartDispatch | GatewayUserUpdateDispatch | GatewayVoiceServerUpdateDispatch | GatewayVoiceStateUpdateDispatch | GatewayWebhooksUpdateDispatch

GatewayGuildBanAddDispatch

GatewayGuildBanAddDispatch: GatewayGuildBanModifyDispatch

GatewayGuildBanAddDispatchData

GatewayGuildBanAddDispatchData: GatewayGuildBanModifyDispatchData

GatewayGuildBanModifyDispatch

GatewayGuildBanModifyDispatch: DataPayload<GatewayDispatchEvents.GuildBanAdd | GatewayDispatchEvents.GuildBanRemove, GatewayGuildBanModifyDispatchData>

GatewayGuildBanRemoveDispatch

GatewayGuildBanRemoveDispatch: GatewayGuildBanModifyDispatch

GatewayGuildBanRemoveDispatchData

GatewayGuildBanRemoveDispatchData: GatewayGuildBanModifyDispatchData

GatewayGuildCreateDispatch

GatewayGuildCreateDispatch: DataPayload<GatewayDispatchEvents.GuildCreate, GatewayGuildCreateDispatchData>

GatewayGuildDeleteDispatch

GatewayGuildDeleteDispatch: DataPayload<GatewayDispatchEvents.GuildDelete, GatewayGuildDeleteDispatchData>

GatewayGuildDeleteDispatchData

GatewayGuildDeleteDispatchData: APIUnavailableGuild

GatewayGuildEmojisUpdateDispatch

GatewayGuildEmojisUpdateDispatch: DataPayload<GatewayDispatchEvents.GuildEmojisUpdate, GatewayGuildEmojisUpdateDispatchData>

GatewayGuildIntegrationsUpdateDispatch

GatewayGuildIntegrationsUpdateDispatch: DataPayload<GatewayDispatchEvents.GuildIntegrationsUpdate, GatewayGuildIntegrationsUpdateDispatchData>

GatewayGuildMemberAddDispatch

GatewayGuildMemberAddDispatch: DataPayload<GatewayDispatchEvents.GuildMemberAdd, GatewayGuildMemberAddDispatchData>

GatewayGuildMemberRemoveDispatch

GatewayGuildMemberRemoveDispatch: DataPayload<GatewayDispatchEvents.GuildMemberRemove, GatewayGuildMemberRemoveDispatchData>

GatewayGuildMemberUpdateDispatch

GatewayGuildMemberUpdateDispatch: DataPayload<GatewayDispatchEvents.GuildMemberUpdate, GatewayGuildMemberUpdateDispatchData>

GatewayGuildMemberUpdateDispatchData

GatewayGuildMemberUpdateDispatchData: Omit<APIGuildMember, deaf | mute | user | joined_at> & Partial<Pick<APIGuildMember, deaf | mute>> & Required<Pick<APIGuildMember, user>> & Nullable<Pick<APIGuildMember, joined_at>> & { guild_id: Snowflake }

GatewayGuildMembersChunkDispatch

GatewayGuildMembersChunkDispatch: DataPayload<GatewayDispatchEvents.GuildMembersChunk, GatewayGuildMembersChunkDispatchData>

GatewayGuildModifyDispatch

GatewayGuildModifyDispatch: DataPayload<GatewayDispatchEvents.GuildUpdate, GatewayGuildModifyDispatchData>

GatewayGuildModifyDispatchData

GatewayGuildModifyDispatchData: APIGuild

GatewayGuildRoleCreateDispatch

GatewayGuildRoleCreateDispatch: GatewayGuildRoleModifyDispatch

GatewayGuildRoleCreateDispatchData

GatewayGuildRoleCreateDispatchData: GatewayGuildRoleModifyDispatchData

GatewayGuildRoleDeleteDispatch

GatewayGuildRoleDeleteDispatch: DataPayload<GatewayDispatchEvents.GuildRoleDelete, GatewayGuildRoleDeleteDispatchData>

GatewayGuildRoleModifyDispatch

GatewayGuildRoleModifyDispatch: DataPayload<GatewayDispatchEvents.GuildRoleCreate | GatewayDispatchEvents.GuildRoleUpdate, GatewayGuildRoleModifyDispatchData>

GatewayGuildRoleUpdateDispatch

GatewayGuildRoleUpdateDispatch: GatewayGuildRoleModifyDispatch

GatewayGuildRoleUpdateDispatchData

GatewayGuildRoleUpdateDispatchData: GatewayGuildRoleModifyDispatchData

GatewayGuildScheduledEventCreateDispatch

GatewayGuildScheduledEventCreateDispatch: DataPayload<GatewayDispatchEvents.GuildScheduledEventCreate, GatewayGuildScheduledEventCreateDispatchData>

GatewayGuildScheduledEventCreateDispatchData

GatewayGuildScheduledEventCreateDispatchData: APIGuildScheduledEvent

GatewayGuildScheduledEventDeleteDispatch

GatewayGuildScheduledEventDeleteDispatch: DataPayload<GatewayDispatchEvents.GuildScheduledEventDelete, GatewayGuildScheduledEventDeleteDispatchData>

GatewayGuildScheduledEventDeleteDispatchData

GatewayGuildScheduledEventDeleteDispatchData: APIGuildScheduledEvent

GatewayGuildScheduledEventUpdateDispatch

GatewayGuildScheduledEventUpdateDispatch: DataPayload<GatewayDispatchEvents.GuildScheduledEventUpdate, GatewayGuildScheduledEventUpdateDispatchData>

GatewayGuildScheduledEventUpdateDispatchData

GatewayGuildScheduledEventUpdateDispatchData: APIGuildScheduledEvent

GatewayGuildScheduledEventUserAddDispatch

GatewayGuildScheduledEventUserAddDispatch: DataPayload<GatewayDispatchEvents.GuildScheduledEventUserAdd, GatewayGuildScheduledEventUserAddDispatchData>

GatewayGuildScheduledEventUserRemoveDispatch

GatewayGuildScheduledEventUserRemoveDispatch: DataPayload<GatewayDispatchEvents.GuildScheduledEventUserRemove, GatewayGuildScheduledEventUserAddDispatchData>

GatewayGuildStickersUpdateDispatch

GatewayGuildStickersUpdateDispatch: DataPayload<GatewayDispatchEvents.GuildStickersUpdate, GatewayGuildStickersUpdateDispatchData>

GatewayGuildUpdateDispatch

GatewayGuildUpdateDispatch: GatewayGuildModifyDispatch

GatewayGuildUpdateDispatchData

GatewayGuildUpdateDispatchData: GatewayGuildModifyDispatchData

GatewayHeartbeatData

GatewayHeartbeatData: number | null

GatewayIntegrationCreateDispatch

GatewayIntegrationCreateDispatch: DataPayload<GatewayDispatchEvents.IntegrationCreate, GatewayIntegrationCreateDispatchData>

GatewayIntegrationCreateDispatchData

GatewayIntegrationCreateDispatchData: APIGuildIntegration & { guild_id: Snowflake }

GatewayIntegrationDeleteDispatch

GatewayIntegrationDeleteDispatch: DataPayload<GatewayDispatchEvents.IntegrationDelete, GatewayIntegrationDeleteDispatchData>

GatewayIntegrationUpdateDispatch

GatewayIntegrationUpdateDispatch: DataPayload<GatewayDispatchEvents.IntegrationUpdate, GatewayIntegrationUpdateDispatchData>

GatewayIntegrationUpdateDispatchData

GatewayIntegrationUpdateDispatchData: APIGuildIntegration & { guild_id: Snowflake }

GatewayInteractionCreateDispatch

GatewayInteractionCreateDispatch: DataPayload<GatewayDispatchEvents.InteractionCreate, GatewayInteractionCreateDispatchData>

GatewayInteractionCreateDispatchData

GatewayInteractionCreateDispatchData: APIInteraction

GatewayInvalidSessionData

GatewayInvalidSessionData: boolean

GatewayInviteCreateDispatch

GatewayInviteCreateDispatch: DataPayload<GatewayDispatchEvents.InviteCreate, GatewayInviteCreateDispatchData>

GatewayInviteDeleteDispatch

GatewayInviteDeleteDispatch: DataPayload<GatewayDispatchEvents.InviteDelete, GatewayInviteDeleteDispatchData>

GatewayMessageCreateDispatch

GatewayMessageCreateDispatch: DataPayload<GatewayDispatchEvents.MessageCreate, GatewayMessageCreateDispatchData>

GatewayMessageCreateDispatchData

GatewayMessageCreateDispatchData: Omit<APIMessage, mentions> & GatewayMessageEventExtraFields

GatewayMessageDeleteBulkDispatch

GatewayMessageDeleteBulkDispatch: DataPayload<GatewayDispatchEvents.MessageDeleteBulk, GatewayMessageDeleteBulkDispatchData>

GatewayMessageDeleteDispatch

GatewayMessageDeleteDispatch: DataPayload<GatewayDispatchEvents.MessageDelete, GatewayMessageDeleteDispatchData>

GatewayMessageReactionAddDispatch

GatewayMessageReactionAddDispatch: ReactionData<GatewayDispatchEvents.MessageReactionAdd>

GatewayMessageReactionAddDispatchData

GatewayMessageReactionAddDispatchData: GatewayMessageReactionAddDispatch[d]

GatewayMessageReactionRemoveAllDispatch

GatewayMessageReactionRemoveAllDispatch: DataPayload<GatewayDispatchEvents.MessageReactionRemoveAll, GatewayMessageReactionRemoveAllDispatchData>

GatewayMessageReactionRemoveAllDispatchData

GatewayMessageReactionRemoveAllDispatchData: MessageReactionRemoveData

GatewayMessageReactionRemoveDispatch

GatewayMessageReactionRemoveDispatch: ReactionData<GatewayDispatchEvents.MessageReactionRemove, member>

GatewayMessageReactionRemoveDispatchData

GatewayMessageReactionRemoveDispatchData: GatewayMessageReactionRemoveDispatch[d]

GatewayMessageReactionRemoveEmojiDispatch

GatewayMessageReactionRemoveEmojiDispatch: DataPayload<GatewayDispatchEvents.MessageReactionRemoveEmoji, GatewayMessageReactionRemoveEmojiDispatchData>

GatewayMessageUpdateDispatch

GatewayMessageUpdateDispatch: DataPayload<GatewayDispatchEvents.MessageUpdate, GatewayMessageUpdateDispatchData>

GatewayMessageUpdateDispatchData

GatewayMessageUpdateDispatchData: Omit<Partial<APIMessage>, mentions> & GatewayMessageEventExtraFields & { channel_id: Snowflake; id: Snowflake }

GatewayPresenceUpdateDispatch

GatewayPresenceUpdateDispatch: DataPayload<GatewayDispatchEvents.PresenceUpdate, GatewayPresenceUpdateDispatchData>

GatewayPresenceUpdateDispatchData

GatewayPresenceUpdateDispatchData: RawGatewayPresenceUpdate

GatewayReadyDispatch

GatewayReadyDispatch: DataPayload<GatewayDispatchEvents.Ready, GatewayReadyDispatchData>

GatewayReceivePayload

GatewayRequestGuildMembersData

GatewayResumedDispatch

GatewayResumedDispatch: DataPayload<GatewayDispatchEvents.Resumed, never>

GatewaySendPayload

GatewayStageInstanceCreateDispatch

GatewayStageInstanceCreateDispatch: DataPayload<GatewayDispatchEvents.StageInstanceCreate, GatewayStageInstanceCreateDispatchData>

GatewayStageInstanceCreateDispatchData

GatewayStageInstanceCreateDispatchData: APIStageInstance

GatewayStageInstanceDeleteDispatch

GatewayStageInstanceDeleteDispatch: DataPayload<GatewayDispatchEvents.StageInstanceDelete, GatewayStageInstanceDeleteDispatchData>

GatewayStageInstanceDeleteDispatchData

GatewayStageInstanceDeleteDispatchData: APIStageInstance

GatewayStageInstanceUpdateDispatch

GatewayStageInstanceUpdateDispatch: DataPayload<GatewayDispatchEvents.StageInstanceUpdate, GatewayStageInstanceUpdateDispatchData>

GatewayStageInstanceUpdateDispatchData

GatewayStageInstanceUpdateDispatchData: APIStageInstance

GatewayThreadCreateDispatch

GatewayThreadCreateDispatch: GatewayChannelModifyDispatch

GatewayThreadDeleteDispatch

GatewayThreadDeleteDispatch: GatewayChannelModifyDispatch

GatewayThreadDeleteDispatchData

GatewayThreadDeleteDispatchData: GatewayChannelModifyDispatchData

GatewayThreadListSyncDispatch

GatewayThreadListSyncDispatch: DataPayload<GatewayDispatchEvents.ThreadListSync, GatewayThreadListSyncDispatchData>

GatewayThreadListSyncDispatchData

GatewayThreadListSyncDispatchData: RawGatewayThreadListSync

GatewayThreadMemberUpdateDispatch

GatewayThreadMemberUpdateDispatch: DataPayload<GatewayDispatchEvents.ThreadMemberUpdate, GatewayThreadMemberUpdateDispatchData>

GatewayThreadMemberUpdateDispatchData

GatewayThreadMemberUpdateDispatchData: APIThreadMember & { guild_id: Snowflake }

GatewayThreadMembersUpdateDispatch

GatewayThreadMembersUpdateDispatch: DataPayload<GatewayDispatchEvents.ThreadMembersUpdate, GatewayThreadMembersUpdateDispatchData>

GatewayThreadMembersUpdateDispatchData

GatewayThreadMembersUpdateDispatchData: RawGatewayThreadMembersUpdate

GatewayThreadModifyDispatch

GatewayThreadModifyDispatch: DataPayload<GatewayDispatchEvents.ThreadCreate | GatewayDispatchEvents.ThreadDelete | GatewayDispatchEvents.ThreadUpdate, GatewayChannelModifyDispatchData>

GatewayThreadUpdateDispatch

GatewayThreadUpdateDispatch: GatewayChannelModifyDispatch

GatewayThreadUpdateDispatchData

GatewayThreadUpdateDispatchData: GatewayChannelModifyDispatchData

GatewayTypingStartDispatch

GatewayTypingStartDispatch: DataPayload<GatewayDispatchEvents.TypingStart, GatewayTypingStartDispatchData>

GatewayUserUpdateDispatch

GatewayUserUpdateDispatch: DataPayload<GatewayDispatchEvents.UserUpdate, GatewayUserUpdateDispatchData>

GatewayUserUpdateDispatchData

GatewayUserUpdateDispatchData: APIUser

GatewayVoiceServerUpdateDispatch

GatewayVoiceServerUpdateDispatch: DataPayload<GatewayDispatchEvents.VoiceServerUpdate, GatewayVoiceServerUpdateDispatchData>

GatewayVoiceStateUpdateDispatch

GatewayVoiceStateUpdateDispatch: DataPayload<GatewayDispatchEvents.VoiceStateUpdate, GatewayVoiceStateUpdateDispatchData>

GatewayVoiceStateUpdateDispatchData

GatewayVoiceStateUpdateDispatchData: GatewayVoiceState

GatewayWebhooksUpdateDispatch

GatewayWebhooksUpdateDispatch: DataPayload<GatewayDispatchEvents.WebhooksUpdate, GatewayWebhooksUpdateDispatchData>

GetAPIVoiceRegionsResult

GetAPIVoiceRegionsResult: RESTGetAPIVoiceRegionsResult
@deprecated

This was exported with the wrong name, use RESTGetAPIVoiceRegionsResult instead

GuildBannerFormat

GuildBannerFormat: Exclude<ImageFormat, ImageFormat.Lottie>

GuildChannelType

GuildChannelType: Exclude<ChannelType, ChannelType.DM | ChannelType.GroupDM>

GuildDiscoverySplashFormat

GuildDiscoverySplashFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

GuildIconFormat

GuildIconFormat: Exclude<ImageFormat, ImageFormat.Lottie>

GuildMemberAvatarFormat

GuildMemberAvatarFormat: Exclude<ImageFormat, ImageFormat.Lottie>

GuildMemberBannerFormat

GuildMemberBannerFormat: Exclude<ImageFormat, ImageFormat.Lottie>

GuildScheduledEventCoverFormat

GuildScheduledEventCoverFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

GuildSplashFormat

GuildSplashFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

GuildTextChannelType

GuildTextChannelType: Exclude<TextChannelType, ChannelType.DM | ChannelType.GroupDM>

PartialAPIMessageInteractionGuildMember

PartialAPIMessageInteractionGuildMember: Pick<APIGuildMember, roles | premium_since | pending | nick | mute | joined_at | deaf | communication_disabled_until | avatar>

RESTDeleteAPIAutoModerationRuleResult

RESTDeleteAPIAutoModerationRuleResult: never

RESTDeleteAPIChannelAllMessageReactionsResult

RESTDeleteAPIChannelAllMessageReactionsResult: never

RESTDeleteAPIChannelMessageOwnReaction

RESTDeleteAPIChannelMessageOwnReaction: never

RESTDeleteAPIChannelMessageReactionResult

RESTDeleteAPIChannelMessageReactionResult: never

RESTDeleteAPIChannelMessageResult

RESTDeleteAPIChannelMessageResult: never

RESTDeleteAPIChannelMessageUserReactionResult

RESTDeleteAPIChannelMessageUserReactionResult: never

RESTDeleteAPIChannelPermissionResult

RESTDeleteAPIChannelPermissionResult: never

RESTDeleteAPIChannelPinResult

RESTDeleteAPIChannelPinResult: never

RESTDeleteAPIChannelRecipientResult

RESTDeleteAPIChannelRecipientResult: unknown

RESTDeleteAPIChannelResult

RESTDeleteAPIChannelResult: APIChannel

RESTDeleteAPIChannelThreadMembersResult

RESTDeleteAPIChannelThreadMembersResult: never

RESTDeleteAPICurrentUserGuildResult

RESTDeleteAPICurrentUserGuildResult: never

RESTDeleteAPIGuildBanResult

RESTDeleteAPIGuildBanResult: never

RESTDeleteAPIGuildEmojiResult

RESTDeleteAPIGuildEmojiResult: never

RESTDeleteAPIGuildIntegrationResult

RESTDeleteAPIGuildIntegrationResult: never

RESTDeleteAPIGuildMemberResult

RESTDeleteAPIGuildMemberResult: never

RESTDeleteAPIGuildMemberRoleResult

RESTDeleteAPIGuildMemberRoleResult: never

RESTDeleteAPIGuildResult

RESTDeleteAPIGuildResult: never

RESTDeleteAPIGuildRoleResult

RESTDeleteAPIGuildRoleResult: never

RESTDeleteAPIGuildScheduledEventResult

RESTDeleteAPIGuildScheduledEventResult: never

RESTDeleteAPIGuildStickerResult

RESTDeleteAPIGuildStickerResult: never

RESTDeleteAPIGuildTemplateResult

RESTDeleteAPIGuildTemplateResult: APITemplate

RESTDeleteAPIInteractionFollowupResult

RESTDeleteAPIInteractionFollowupResult: RESTDeleteAPIWebhookWithTokenMessageResult

RESTDeleteAPIInteractionOriginalResponseResult

RESTDeleteAPIInteractionOriginalResponseResult: RESTDeleteAPIWebhookWithTokenMessageResult

RESTDeleteAPIInviteResult

RESTDeleteAPIInviteResult: APIInvite

RESTDeleteAPIStageInstanceResult

RESTDeleteAPIStageInstanceResult: never

RESTDeleteAPIWebhookResult

RESTDeleteAPIWebhookResult: never

RESTDeleteAPIWebhookWithTokenMessageResult

RESTDeleteAPIWebhookWithTokenMessageResult: never

RESTDeleteAPIWebhookWithTokenResult

RESTDeleteAPIWebhookWithTokenResult: never

RESTGetAPIApplicationCommandPermissionsResult

RESTGetAPIApplicationCommandPermissionsResult: APIGuildApplicationCommandPermissions

RESTGetAPIApplicationCommandResult

RESTGetAPIApplicationCommandResult: APIApplicationCommand

RESTGetAPIApplicationCommandsResult

RESTGetAPIApplicationCommandsResult: APIApplicationCommand[]

RESTGetAPIApplicationGuildCommandResult

RESTGetAPIApplicationGuildCommandResult: Omit<APIApplicationCommand, dm_permission>

RESTGetAPIApplicationGuildCommandsQuery

RESTGetAPIApplicationGuildCommandsQuery: RESTGetAPIApplicationCommandsQuery

RESTGetAPIApplicationGuildCommandsResult

RESTGetAPIApplicationGuildCommandsResult: Omit<APIApplicationCommand, dm_permission>[]

RESTGetAPIAuditLogResult

RESTGetAPIAuditLogResult: APIAuditLog

RESTGetAPIAutoModerationRuleResult

RESTGetAPIAutoModerationRuleResult: APIAutoModerationRule

RESTGetAPIAutoModerationRulesResult

RESTGetAPIAutoModerationRulesResult: APIAutoModerationRule[]

RESTGetAPIChannelInvitesResult

RESTGetAPIChannelInvitesResult: APIExtendedInvite[]

RESTGetAPIChannelMessageReactionUsersResult

RESTGetAPIChannelMessageReactionUsersResult: APIUser[]

RESTGetAPIChannelMessageResult

RESTGetAPIChannelMessageResult: APIMessage

RESTGetAPIChannelMessagesResult

RESTGetAPIChannelMessagesResult: APIMessage[]

RESTGetAPIChannelPinsResult

RESTGetAPIChannelPinsResult: APIMessage[]

RESTGetAPIChannelResult

RESTGetAPIChannelResult: APIChannel

RESTGetAPIChannelThreadMembersResult

RESTGetAPIChannelThreadMembersResult: APIThreadMember[]

RESTGetAPIChannelThreadsResult

RESTGetAPIChannelThreadsResult: APIThreadList

RESTGetAPIChannelUsersThreadsArchivedResult

RESTGetAPIChannelUsersThreadsArchivedResult: APIThreadList

RESTGetAPIChannelWebhooksResult

RESTGetAPIChannelWebhooksResult: APIWebhook[]

RESTGetAPICurrentUserConnectionsResult

RESTGetAPICurrentUserConnectionsResult: APIConnection[]

RESTGetAPICurrentUserGuildsResult

RESTGetAPICurrentUserGuildsResult: RESTAPIPartialCurrentUserGuild[]

RESTGetAPICurrentUserResult

RESTGetAPICurrentUserResult: APIUser

RESTGetAPIGatewayBotResult

RESTGetAPIGatewayBotResult: APIGatewayBotInfo

RESTGetAPIGatewayResult

RESTGetAPIGatewayResult: APIGatewayInfo

RESTGetAPIGuildApplicationCommandsPermissionsResult

RESTGetAPIGuildApplicationCommandsPermissionsResult: APIGuildApplicationCommandPermissions[]

RESTGetAPIGuildBanResult

RESTGetAPIGuildBanResult: APIBan

RESTGetAPIGuildBansResult

RESTGetAPIGuildBansResult: APIBan[]

RESTGetAPIGuildChannelsResult

RESTGetAPIGuildChannelsResult: APIChannel[]

RESTGetAPIGuildEmojiResult

RESTGetAPIGuildEmojiResult: APIEmoji

RESTGetAPIGuildEmojisResult

RESTGetAPIGuildEmojisResult: APIEmoji[]

RESTGetAPIGuildIntegrationsResult

RESTGetAPIGuildIntegrationsResult: APIGuildIntegration[]

RESTGetAPIGuildInvitesResult

RESTGetAPIGuildInvitesResult: APIExtendedInvite[]

RESTGetAPIGuildMemberResult

RESTGetAPIGuildMemberResult: APIGuildMember

RESTGetAPIGuildMemberVerificationResult

RESTGetAPIGuildMemberVerificationResult: APIGuildMembershipScreening

RESTGetAPIGuildMembersResult

RESTGetAPIGuildMembersResult: APIGuildMember[]

RESTGetAPIGuildMembersSearchResult

RESTGetAPIGuildMembersSearchResult: APIGuildMember[]

RESTGetAPIGuildPreviewResult

RESTGetAPIGuildPreviewResult: APIGuildPreview

RESTGetAPIGuildResult

RESTGetAPIGuildResult: APIGuild

RESTGetAPIGuildRolesResult

RESTGetAPIGuildRolesResult: APIRole[]

RESTGetAPIGuildScheduledEventResult

RESTGetAPIGuildScheduledEventResult: APIGuildScheduledEvent

RESTGetAPIGuildScheduledEventUsersResult

RESTGetAPIGuildScheduledEventUsersResult: APIGuildScheduledEventUser[]

RESTGetAPIGuildScheduledEventsResult

RESTGetAPIGuildScheduledEventsResult: APIGuildScheduledEvent[]

RESTGetAPIGuildStickerResult

RESTGetAPIGuildStickerResult: APISticker

RESTGetAPIGuildStickersResult

RESTGetAPIGuildStickersResult: APISticker[]

RESTGetAPIGuildTemplatesResult

RESTGetAPIGuildTemplatesResult: APITemplate[]

RESTGetAPIGuildThreadsResult

RESTGetAPIGuildThreadsResult: Omit<APIThreadList, has_more>

RESTGetAPIGuildVoiceRegionsResult

RESTGetAPIGuildVoiceRegionsResult: APIVoiceRegion[]

RESTGetAPIGuildWebhooksResult

RESTGetAPIGuildWebhooksResult: APIWebhook[]

RESTGetAPIGuildWelcomeScreenResult

RESTGetAPIGuildWelcomeScreenResult: APIGuildWelcomeScreen

RESTGetAPIGuildWidgetImageResult

RESTGetAPIGuildWidgetImageResult: ArrayBuffer

Note: while the return type is ArrayBuffer, the expected result is a buffer of sorts (depends if in browser or on node.js/deno).

RESTGetAPIGuildWidgetJSONResult

RESTGetAPIGuildWidgetJSONResult: APIGuildWidget

RESTGetAPIGuildWidgetSettingsResult

RESTGetAPIGuildWidgetSettingsResult: APIGuildWidgetSettings

RESTGetAPIInteractionFollowupResult

RESTGetAPIInteractionFollowupResult: RESTGetAPIWebhookWithTokenMessageResult

RESTGetAPIInteractionOriginalResponseResult

RESTGetAPIInteractionOriginalResponseResult: RESTGetAPIWebhookWithTokenMessageResult

RESTGetAPIInviteResult

RESTGetAPIInviteResult: APIInvite

RESTGetAPIOAuth2CurrentApplicationResult

RESTGetAPIOAuth2CurrentApplicationResult: Omit<APIApplication, flags>

RESTGetAPIStageInstanceResult

RESTGetAPIStageInstanceResult: APIStageInstance

RESTGetAPIStickerResult

RESTGetAPIStickerResult: APISticker

RESTGetAPITemplateResult

RESTGetAPITemplateResult: APITemplate

RESTGetAPIUserResult

RESTGetAPIUserResult: APIUser

RESTGetAPIVoiceRegionsResult

RESTGetAPIVoiceRegionsResult: APIVoiceRegion[]

RESTGetAPIWebhookResult

RESTGetAPIWebhookResult: APIWebhook

RESTGetAPIWebhookWithTokenMessageResult

RESTGetAPIWebhookWithTokenMessageResult: APIMessage

RESTGetAPIWebhookWithTokenResult

RESTGetAPIWebhookWithTokenResult: Omit<APIWebhook, user>

RESTGetCurrentUserGuildMemberResult

RESTGetCurrentUserGuildMemberResult: APIGuildMember

RESTOAuth2ImplicitAuthorizationURLFragmentResult

RESTOAuth2ImplicitAuthorizationURLFragmentResult: Omit<RESTPostOAuth2AccessTokenResult, refresh_token>

RESTPatchAPIApplicationCommandJSONBody

RESTPatchAPIApplicationCommandJSONBody: StrictPartial<RESTPostAPIApplicationCommandsJSONBody>

RESTPatchAPIApplicationCommandResult

RESTPatchAPIApplicationCommandResult: APIApplicationCommand

RESTPatchAPIApplicationGuildCommandJSONBody

RESTPatchAPIApplicationGuildCommandJSONBody: StrictPartial<Omit<RESTPostAPIChatInputApplicationCommandsJSONBody, dm_permission> | Omit<RESTPostAPIContextMenuApplicationCommandsJSONBody, dm_permission>>

RESTPatchAPIApplicationGuildCommandResult

RESTPatchAPIApplicationGuildCommandResult: Omit<APIApplicationCommand, dm_permission>

RESTPatchAPIAutoModerationRuleJSONBody

RESTPatchAPIAutoModerationRuleJSONBody: Omit<Partial<RESTPostAPIAutoModerationRuleJSONBody>, trigger_type>

RESTPatchAPIAutoModerationRuleResult

RESTPatchAPIAutoModerationRuleResult: APIAutoModerationRule

RESTPatchAPIChannelJSONBody

RESTPatchAPIChannelJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ archived?: boolean; auto_archive_duration?: ThreadAutoArchiveDuration; available_tags?: APIGuildForumTag[]; bitrate?: number | null; default_auto_archive_duration?: ThreadAutoArchiveDuration; default_reaction_emoji?: APIGuildForumDefaultReactionEmoji; default_sort_order?: SortOrderType | null; default_thread_rate_limit_per_user?: number | null; invitable?: boolean; locked?: boolean; name?: string; nsfw?: boolean | null; parent_id?: Snowflake | null; permission_overwrites?: APIChannelPatchOverwrite[] | null; position?: number | null; rate_limit_per_user?: number | null; rtc_region?: string | null; topic?: string | null; type?: ChannelType.GuildAnnouncement | ChannelType.GuildText; user_limit?: number | null; video_quality_mode?: VideoQualityMode | null }>

RESTPatchAPIChannelMessageFormDataBody

RESTPatchAPIChannelMessageFormDataBody: ({ payload_json?: string } & Record<`files[${bigint}]`, unknown>) | (RESTPatchAPIChannelMessageJSONBody & Record<`files[${bigint}]`, unknown>)

RESTPatchAPIChannelMessageJSONBody

RESTPatchAPIChannelMessageJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ allowed_mentions?: APIAllowedMentions | null; attachments?: (Pick<APIAttachment, id> & Partial<Pick<APIAttachment, filename | description>>)[]; components?: APIActionRowComponent<APIMessageActionRowComponent>[] | null; content?: string | null; embed?: APIEmbed | null; embeds?: APIEmbed[] | null; flags?: MessageFlags | null }>

RESTPatchAPIChannelMessageResult

RESTPatchAPIChannelMessageResult: APIMessage

RESTPatchAPIChannelResult

RESTPatchAPIChannelResult: APIChannel

RESTPatchAPICurrentGuildMemberJSONBody

RESTPatchAPICurrentGuildMemberJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ nick?: string | null }>

RESTPatchAPICurrentGuildMemberNicknameJSONBody

RESTPatchAPICurrentGuildMemberNicknameJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ nick?: string | null }>

RESTPatchAPICurrentGuildMemberNicknameResult

RESTPatchAPICurrentGuildMemberNicknameResult: StrictRequired<RESTPatchAPICurrentGuildMemberNicknameJSONBody>

RESTPatchAPICurrentUserJSONBody

RESTPatchAPICurrentUserJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ avatar?: string | null; username?: string }>

RESTPatchAPICurrentUserResult

RESTPatchAPICurrentUserResult: APIUser

RESTPatchAPIGuildChannelPositionsJSONBody

RESTPatchAPIGuildChannelPositionsJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ id: Snowflake; lock_permissions?: boolean; parent_id?: Snowflake | null; position: number }>[]

RESTPatchAPIGuildChannelPositionsResult

RESTPatchAPIGuildChannelPositionsResult: never

RESTPatchAPIGuildEmojiJSONBody

RESTPatchAPIGuildEmojiJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ name?: string; roles?: Snowflake[] | null }>

RESTPatchAPIGuildEmojiResult

RESTPatchAPIGuildEmojiResult: APIEmoji

RESTPatchAPIGuildJSONBody

RESTPatchAPIGuildJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ afk_channel_id?: Snowflake | null; afk_timeout?: 60 | 300 | 900 | 1800 | 3600; banner?: string | null; default_message_notifications?: GuildDefaultMessageNotifications | null; description?: string | null; discovery_splash?: string | null; explicit_content_filter?: GuildExplicitContentFilter | null; features?: GuildFeature[]; icon?: string | null; name?: string; owner_id?: Snowflake; preferred_locale?: string | null; premium_progress_bar_enabled?: boolean; public_updates_channel_id?: Snowflake | null; region?: string | null; rules_channel_id?: Snowflake | null; splash?: string | null; system_channel_flags?: GuildSystemChannelFlags; system_channel_id?: Snowflake | null; verification_level?: GuildVerificationLevel | null }>

RESTPatchAPIGuildMemberJSONBody

RESTPatchAPIGuildMemberJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ channel_id?: Snowflake | null; communication_disabled_until?: string | null; deaf?: boolean | null; mute?: boolean | null; nick?: string | null; roles?: Snowflake[] | null }>

RESTPatchAPIGuildMemberResult

RESTPatchAPIGuildMemberResult: APIGuildMember

RESTPatchAPIGuildMemberVerificationJSONBody

RESTPatchAPIGuildMemberVerificationJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ description?: string | null; enabled?: boolean; form_fields?: string }>

RESTPatchAPIGuildMemberVerificationResult

RESTPatchAPIGuildMemberVerificationResult: APIGuildMembershipScreening

RESTPatchAPIGuildResult

RESTPatchAPIGuildResult: APIGuild

RESTPatchAPIGuildRoleJSONBody

RESTPatchAPIGuildRoleJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ color?: number | null; hoist?: boolean | null; icon?: string | null; mentionable?: boolean | null; name?: string | null; permissions?: Permissions | null; unicode_emoji?: string | null }>

RESTPatchAPIGuildRolePositionsJSONBody

RESTPatchAPIGuildRolePositionsJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ id: Snowflake; position?: number }>[]

RESTPatchAPIGuildRolePositionsResult

RESTPatchAPIGuildRolePositionsResult: APIRole[]

RESTPatchAPIGuildRoleResult

RESTPatchAPIGuildRoleResult: APIRole

RESTPatchAPIGuildScheduledEventJSONBody

RESTPatchAPIGuildScheduledEventJSONBody: StrictPartial<RESTPostAPIGuildScheduledEventJSONBody> & AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ description?: string | null; entity_metadata?: APIGuildScheduledEventEntityMetadata | null; status?: GuildScheduledEventStatus }>

RESTPatchAPIGuildScheduledEventResult

RESTPatchAPIGuildScheduledEventResult: APIGuildScheduledEvent

RESTPatchAPIGuildStickerJSONBody

RESTPatchAPIGuildStickerJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ description?: string | null; name?: string; tags?: string }>

RESTPatchAPIGuildStickerResult

RESTPatchAPIGuildStickerResult: APISticker

RESTPatchAPIGuildTemplateJSONBody

RESTPatchAPIGuildTemplateJSONBody: StrictPartial<RESTPostAPIGuildTemplatesJSONBody>

RESTPatchAPIGuildTemplateResult

RESTPatchAPIGuildTemplateResult: APITemplate

RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody

RESTPatchAPIGuildVoiceStateCurrentMemberJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ channel_id?: Snowflake; request_to_speak_timestamp?: string | null; suppress?: boolean }>

RESTPatchAPIGuildVoiceStateCurrentMemberResult

RESTPatchAPIGuildVoiceStateCurrentMemberResult: never

RESTPatchAPIGuildVoiceStateUserJSONBody

RESTPatchAPIGuildVoiceStateUserJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ channel_id: Snowflake; suppress?: boolean }>

RESTPatchAPIGuildVoiceStateUserResult

RESTPatchAPIGuildVoiceStateUserResult: never

RESTPatchAPIGuildWelcomeScreenJSONBody

RESTPatchAPIGuildWelcomeScreenJSONBody: Nullable<StrictPartial<APIGuildWelcomeScreen>> & AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ enabled?: boolean | null }>

RESTPatchAPIGuildWelcomeScreenResult

RESTPatchAPIGuildWelcomeScreenResult: APIGuildWelcomeScreen

RESTPatchAPIGuildWidgetSettingsJSONBody

RESTPatchAPIGuildWidgetSettingsJSONBody: StrictPartial<APIGuildWidgetSettings>

RESTPatchAPIGuildWidgetSettingsResult

RESTPatchAPIGuildWidgetSettingsResult: APIGuildWidgetSettings

RESTPatchAPIInteractionFollowupFormDataBody

RESTPatchAPIInteractionFollowupFormDataBody: RESTPatchAPIWebhookWithTokenMessageFormDataBody

RESTPatchAPIInteractionFollowupJSONBody

RESTPatchAPIInteractionFollowupJSONBody: RESTPatchAPIWebhookWithTokenMessageJSONBody

RESTPatchAPIInteractionFollowupResult

RESTPatchAPIInteractionFollowupResult: RESTPatchAPIWebhookWithTokenMessageResult

RESTPatchAPIInteractionOriginalResponseFormDataBody

RESTPatchAPIInteractionOriginalResponseFormDataBody: RESTPatchAPIWebhookWithTokenMessageFormDataBody

RESTPatchAPIInteractionOriginalResponseJSONBody

RESTPatchAPIInteractionOriginalResponseJSONBody: RESTPatchAPIWebhookWithTokenMessageJSONBody

RESTPatchAPIInteractionOriginalResponseResult

RESTPatchAPIInteractionOriginalResponseResult: RESTPatchAPIWebhookWithTokenMessageResult

RESTPatchAPIStageInstanceJSONBody

RESTPatchAPIStageInstanceJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ privacy_level?: StageInstancePrivacyLevel; topic?: string }>

RESTPatchAPIStageInstanceResult

RESTPatchAPIStageInstanceResult: APIStageInstance

RESTPatchAPIWebhookJSONBody

RESTPatchAPIWebhookJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ avatar?: string | null; channel_id?: Snowflake; name?: string }>

RESTPatchAPIWebhookResult

RESTPatchAPIWebhookResult: APIWebhook

RESTPatchAPIWebhookWithTokenJSONBody

RESTPatchAPIWebhookWithTokenJSONBody: Omit<RESTPatchAPIWebhookJSONBody, channel_id>

RESTPatchAPIWebhookWithTokenMessageFormDataBody

RESTPatchAPIWebhookWithTokenMessageFormDataBody: ({ payload_json?: string } & Record<`files[${bigint}]`, unknown>) | (RESTPatchAPIWebhookWithTokenMessageJSONBody & Record<`files[${bigint}]`, unknown>)

RESTPatchAPIWebhookWithTokenMessageJSONBody

RESTPatchAPIWebhookWithTokenMessageJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<Nullable<Pick<RESTPostAPIWebhookWithTokenJSONBody, content | embeds | allowed_mentions | components>> & { attachments?: (Pick<APIAttachment, id> & Partial<Pick<APIAttachment, filename | description>>)[] }>

RESTPatchAPIWebhookWithTokenMessageResult

RESTPatchAPIWebhookWithTokenMessageResult: APIMessage

RESTPatchAPIWebhookWithTokenResult

RESTPatchAPIWebhookWithTokenResult: RESTGetAPIWebhookWithTokenResult

RESTPostAPIApplicationCommandsJSONBody

RESTPostAPIApplicationCommandsResult

RESTPostAPIApplicationCommandsResult: APIApplicationCommand

RESTPostAPIApplicationGuildCommandsJSONBody

RESTPostAPIApplicationGuildCommandsJSONBody: Omit<RESTPostAPIChatInputApplicationCommandsJSONBody, dm_permission> | Omit<RESTPostAPIContextMenuApplicationCommandsJSONBody, dm_permission>

RESTPostAPIApplicationGuildCommandsResult

RESTPostAPIApplicationGuildCommandsResult: Omit<APIApplicationCommand, dm_permission>

RESTPostAPIAutoModerationRuleJSONBody

RESTPostAPIAutoModerationRuleJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ actions: APIAutoModerationAction[]; enabled?: boolean; event_type: AutoModerationRuleEventType; exempt_channels?: Snowflake[]; exempt_roles?: Snowflake[]; name: string; trigger_metadata?: APIAutoModerationRuleTriggerMetadata; trigger_type: AutoModerationRuleTriggerType }>

RESTPostAPIAutoModerationRuleResult

RESTPostAPIAutoModerationRuleResult: APIAutoModerationRule

RESTPostAPIChannelFollowersResult

RESTPostAPIChannelFollowersResult: APIFollowedChannel

RESTPostAPIChannelInviteJSONBody

RESTPostAPIChannelInviteJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ max_age?: number; max_uses?: number; target_application_id?: Snowflake; target_type?: InviteTargetType; target_user_id?: Snowflake; temporary?: boolean; unique?: boolean }>

RESTPostAPIChannelInviteResult

RESTPostAPIChannelInviteResult: APIExtendedInvite

RESTPostAPIChannelMessageCrosspostResult

RESTPostAPIChannelMessageCrosspostResult: APIMessage

RESTPostAPIChannelMessageFormDataBody

RESTPostAPIChannelMessageFormDataBody: ({ payload_json?: string } & Record<`files[${bigint}]`, unknown>) | (RESTPostAPIChannelMessageJSONBody & Record<`files[${bigint}]`, unknown>)

RESTPostAPIChannelMessageJSONBody

RESTPostAPIChannelMessageJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ allowed_mentions?: APIAllowedMentions; attachments?: (Pick<APIAttachment, id | description> & Partial<Pick<APIAttachment, filename>>)[]; components?: APIActionRowComponent<APIMessageActionRowComponent>[]; content?: string; embed?: APIEmbed; embeds?: APIEmbed[]; flags?: MessageFlags; message_reference?: APIMessageReferenceSend; nonce?: number | string; sticker_ids?: [Snowflake] | [Snowflake, Snowflake] | [Snowflake, Snowflake, Snowflake]; tts?: boolean }>

RESTPostAPIChannelMessageResult

RESTPostAPIChannelMessageResult: APIMessage

RESTPostAPIChannelMessagesBulkDeleteResult

RESTPostAPIChannelMessagesBulkDeleteResult: never

RESTPostAPIChannelMessagesThreadsJSONBody

RESTPostAPIChannelMessagesThreadsJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ auto_archive_duration: ThreadAutoArchiveDuration; name: string; rate_limit_per_user?: number }>

RESTPostAPIChannelMessagesThreadsResult

RESTPostAPIChannelMessagesThreadsResult: APIChannel

RESTPostAPIChannelThreadsJSONBody

RESTPostAPIChannelThreadsJSONBody: RESTPostAPIChannelMessagesThreadsJSONBody & AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ invitable?: boolean; type?: ChannelType.AnnouncementThread | ChannelType.PublicThread | ChannelType.PrivateThread }>

RESTPostAPIChannelThreadsResult

RESTPostAPIChannelThreadsResult: APIChannel

RESTPostAPIChannelTypingResult

RESTPostAPIChannelTypingResult: never

RESTPostAPIChannelWebhookJSONBody

RESTPostAPIChannelWebhookJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ avatar?: string | null; name: string }>

RESTPostAPIChannelWebhookResult

RESTPostAPIChannelWebhookResult: APIWebhook

RESTPostAPIChatInputApplicationCommandsJSONBody

RESTPostAPIChatInputApplicationCommandsJSONBody: RESTPostAPIBaseApplicationCommandsJSONBody & AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ description: string; type?: ApplicationCommandType.ChatInput }>

RESTPostAPICurrentUserCreateDMChannelResult

RESTPostAPICurrentUserCreateDMChannelResult: APIChannel

RESTPostAPIGuildChannelJSONBody

RESTPostAPIGuildChannelJSONBody: DistributiveOmit<APIGuildCreatePartialChannel, id>

RESTPostAPIGuildChannelResult

RESTPostAPIGuildChannelResult: APIChannel

RESTPostAPIGuildEmojiJSONBody

RESTPostAPIGuildEmojiJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ image: string; name: string; roles?: Snowflake[] }>

RESTPostAPIGuildEmojiResult

RESTPostAPIGuildEmojiResult: APIEmoji

RESTPostAPIGuildForumThreadsFormDataBody

RESTPostAPIGuildForumThreadsFormDataBody: RESTPostAPIChannelMessagesThreadsJSONBody & { message: string }

RESTPostAPIGuildForumThreadsJSONBody

RESTPostAPIGuildForumThreadsJSONBody: RESTPostAPIChannelMessagesThreadsJSONBody & { applied_tags?: Snowflake[]; message: RESTPostAPIChannelMessageJSONBody }

RESTPostAPIGuildPruneJSONBody

RESTPostAPIGuildPruneJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ compute_prune_count?: boolean; days?: number; include_roles?: Snowflake[] }>

RESTPostAPIGuildRoleJSONBody

RESTPostAPIGuildRoleJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ color?: number | null; hoist?: boolean | null; icon?: string | null; mentionable?: boolean | null; name?: string | null; permissions?: Permissions | null; unicode_emoji?: string | null }>

RESTPostAPIGuildRoleResult

RESTPostAPIGuildRoleResult: APIRole

RESTPostAPIGuildScheduledEventJSONBody

RESTPostAPIGuildScheduledEventJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ channel_id?: Snowflake; description?: string; entity_metadata?: APIGuildScheduledEventEntityMetadata; entity_type?: GuildScheduledEventEntityType; image?: string | null; name: string; privacy_level: GuildScheduledEventPrivacyLevel; scheduled_end_time?: string; scheduled_start_time: string }>

RESTPostAPIGuildScheduledEventResult

RESTPostAPIGuildScheduledEventResult: APIGuildScheduledEvent

RESTPostAPIGuildStickerResult

RESTPostAPIGuildStickerResult: APISticker

RESTPostAPIGuildTemplatesJSONBody

RESTPostAPIGuildTemplatesJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ description?: string | null; name: string }>

RESTPostAPIGuildTemplatesResult

RESTPostAPIGuildTemplatesResult: APITemplate

RESTPostAPIGuildsJSONBody

RESTPostAPIGuildsJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ afk_channel_id?: number | Snowflake | null; afk_timeout?: 60 | 300 | 900 | 1800 | 3600; channels?: APIGuildCreatePartialChannel[]; default_message_notifications?: GuildDefaultMessageNotifications; explicit_content_filter?: GuildExplicitContentFilter; icon?: string; name: string; premium_progress_bar_enabled?: boolean; region?: string; roles?: APIGuildCreateRole[]; system_channel_flags?: GuildSystemChannelFlags; system_channel_id?: number | Snowflake | null; verification_level?: GuildVerificationLevel }>

RESTPostAPIGuildsMFAResult

RESTPostAPIGuildsMFAResult: RESTPostAPIGuildsMFAJSONBody

RESTPostAPIGuildsResult

RESTPostAPIGuildsResult: APIGuild

RESTPostAPIInteractionCallbackFormDataBody

RESTPostAPIInteractionCallbackFormDataBody: ({ payload_json?: string } & Record<`files[${bigint}]`, unknown>) | (RESTPostAPIInteractionCallbackJSONBody & Record<`files[${bigint}]`, unknown>)

RESTPostAPIInteractionCallbackJSONBody

RESTPostAPIInteractionCallbackJSONBody: APIInteractionResponse

RESTPostAPIInteractionFollowupFormDataBody

RESTPostAPIInteractionFollowupFormDataBody: ({ payload_json?: string } & Record<`files[${bigint}]`, unknown>) | (RESTPostAPIInteractionFollowupJSONBody & Record<`files[${bigint}]`, unknown>)

RESTPostAPIInteractionFollowupJSONBody

RESTPostAPIInteractionFollowupJSONBody: APIInteractionResponseCallbackData

RESTPostAPIInteractionFollowupResult

RESTPostAPIInteractionFollowupResult: RESTPostAPIWebhookWithTokenWaitResult

RESTPostAPIStageInstanceResult

RESTPostAPIStageInstanceResult: APIStageInstance

RESTPostAPITemplateCreateGuildJSONBody

RESTPostAPITemplateCreateGuildJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ icon?: string; name: string }>

RESTPostAPITemplateCreateGuildResult

RESTPostAPITemplateCreateGuildResult: APIGuild

RESTPostAPIWebhookWithTokenFormDataBody

RESTPostAPIWebhookWithTokenFormDataBody: ({ payload_json?: string } & Record<`files[${bigint}]`, unknown>) | (RESTPostAPIWebhookWithTokenJSONBody & Record<`files[${bigint}]`, unknown>)

RESTPostAPIWebhookWithTokenGitHubQuery

RESTPostAPIWebhookWithTokenGitHubQuery: RESTPostAPIWebhookWithTokenQuery

RESTPostAPIWebhookWithTokenGitHubResult

RESTPostAPIWebhookWithTokenGitHubResult: never

RESTPostAPIWebhookWithTokenGitHubWaitResult

RESTPostAPIWebhookWithTokenGitHubWaitResult: APIMessage

RESTPostAPIWebhookWithTokenJSONBody

RESTPostAPIWebhookWithTokenJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ allowed_mentions?: APIAllowedMentions; attachments?: (Pick<APIAttachment, id | description> & Partial<Pick<APIAttachment, filename>>)[]; avatar_url?: string; components?: APIActionRowComponent<APIMessageActionRowComponent>[]; content?: string; embeds?: APIEmbed[]; flags?: MessageFlags; thread_name?: string; tts?: boolean; username?: string }>

RESTPostAPIWebhookWithTokenResult

RESTPostAPIWebhookWithTokenResult: never

RESTPostAPIWebhookWithTokenSlackQuery

RESTPostAPIWebhookWithTokenSlackQuery: RESTPostAPIWebhookWithTokenQuery

RESTPostAPIWebhookWithTokenSlackResult

RESTPostAPIWebhookWithTokenSlackResult: never

RESTPostAPIWebhookWithTokenSlackWaitResult

RESTPostAPIWebhookWithTokenSlackWaitResult: APIMessage

RESTPostAPIWebhookWithTokenWaitResult

RESTPostAPIWebhookWithTokenWaitResult: APIMessage

RESTPostOAuth2AccessTokenWithBotAndGuildsAndWebhookIncomingScopeResult

RESTPostOAuth2ClientCredentialsResult

RESTPostOAuth2ClientCredentialsResult: RESTOAuth2ImplicitAuthorizationURLFragmentResult

RESTPostOAuth2RefreshTokenResult

RESTPostOAuth2RefreshTokenResult: RESTPostOAuth2AccessTokenResult

RESTPutAPIApplicationCommandPermissionsResult

RESTPutAPIApplicationCommandPermissionsResult: APIGuildApplicationCommandPermissions

RESTPutAPIApplicationCommandsJSONBody

RESTPutAPIApplicationCommandsJSONBody: RESTPostAPIApplicationCommandsJSONBody[]

RESTPutAPIApplicationCommandsResult

RESTPutAPIApplicationCommandsResult: APIApplicationCommand[]

RESTPutAPIApplicationGuildCommandsJSONBody

RESTPutAPIApplicationGuildCommandsJSONBody: ((Omit<RESTPostAPIChatInputApplicationCommandsJSONBody, dm_permission> & Pick<Partial<APIApplicationCommand>, id>) | (Omit<RESTPostAPIContextMenuApplicationCommandsJSONBody, dm_permission> & Pick<Partial<APIApplicationCommand>, id>))[]

RESTPutAPIApplicationGuildCommandsResult

RESTPutAPIApplicationGuildCommandsResult: Omit<APIApplicationCommand, dm_permission>[]

RESTPutAPIChannelMessageReactionResult

RESTPutAPIChannelMessageReactionResult: never

RESTPutAPIChannelPermissionResult

RESTPutAPIChannelPermissionResult: never

RESTPutAPIChannelPinResult

RESTPutAPIChannelPinResult: never

RESTPutAPIChannelRecipientJSONBody

RESTPutAPIChannelRecipientJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ access_token: string; nick?: string }>

RESTPutAPIChannelRecipientResult

RESTPutAPIChannelRecipientResult: unknown

RESTPutAPIChannelThreadMembersResult

RESTPutAPIChannelThreadMembersResult: never

RESTPutAPIGuildApplicationCommandsPermissionsJSONBody

RESTPutAPIGuildApplicationCommandsPermissionsJSONBody: Pick<APIGuildApplicationCommandPermissions, id | permissions>[]

RESTPutAPIGuildApplicationCommandsPermissionsResult

RESTPutAPIGuildApplicationCommandsPermissionsResult: APIGuildApplicationCommandPermissions[]

RESTPutAPIGuildBanJSONBody

RESTPutAPIGuildBanJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ delete_message_days?: number; delete_message_seconds?: number; reason?: string }>

RESTPutAPIGuildBanResult

RESTPutAPIGuildBanResult: never

RESTPutAPIGuildMemberJSONBody

RESTPutAPIGuildMemberJSONBody: AddUndefinedToPossiblyUndefinedPropertiesOfInterface<{ access_token: string; deaf?: boolean; mute?: boolean; nick?: string; roles?: Snowflake[] }>

RESTPutAPIGuildMemberResult

RESTPutAPIGuildMemberResult: APIGuildMember | never

RESTPutAPIGuildMemberRoleResult

RESTPutAPIGuildMemberRoleResult: never

RESTPutAPIGuildTemplateSyncResult

RESTPutAPIGuildTemplateSyncResult: APITemplate

RoleIconFormat

RoleIconFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

StickerFormat

StickerFormat: Extract<ImageFormat, ImageFormat.PNG | ImageFormat.Lottie>

StickerPackBannerFormat

StickerPackBannerFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

TeamIconFormat

TeamIconFormat: Exclude<ImageFormat, ImageFormat.Lottie | ImageFormat.GIF>

TextChannelType

TextChannelType: ChannelType.DM | ChannelType.GroupDM | ChannelType.GuildAnnouncement | ChannelType.PublicThread | ChannelType.PrivateThread | ChannelType.AnnouncementThread | ChannelType.GuildText | ChannelType.GuildForum | ChannelType.GuildVoice

UserAvatarFormat

UserAvatarFormat: Exclude<ImageFormat, ImageFormat.Lottie>

UserBannerFormat

UserBannerFormat: Exclude<ImageFormat, ImageFormat.Lottie>

Variables

constAPIApplicationCommandPermissionsConstant

APIApplicationCommandPermissionsConstant: { AllChannels: (guildId: string | bigint) => string; Everyone: (guildId: string | bigint) => string } = ...

Type declaration

  • AllChannels: (guildId: string | bigint) => string
      • (guildId: string | bigint): string
      • Parameters

        • guildId: string | bigint

        Returns string

  • Everyone: (guildId: string | bigint) => string
      • (guildId: string | bigint): string
      • Parameters

        • guildId: string | bigint

        Returns string

constAPIVersion

APIVersion: 9 = '9'

constCDNRoutes

CDNRoutes: { achievementIcon: any; applicationAsset: any; applicationCover: any; applicationIcon: any; defaultUserAvatar: any; emoji: any; guildBanner: any; guildDiscoverySplash: any; guildIcon: any; guildMemberAvatar: any; guildMemberBanner: any; guildScheduledEventCover: any; guildSplash: any; roleIcon: any; sticker: any; stickerPackBanner: any; teamIcon: any; userAvatar: any; userBanner: any } = ...

Type declaration

  • achievementIcon: function
    • achievementIcon(applicationId: string, achievementId: string, achievementIconHash: string, format: AchievementIconFormat): `/app-assets/${string}/achievements/${string}/icons/${string}.jpeg` | `/app-assets/${string}/achievements/${string}/icons/${string}.png` | `/app-assets/${string}/achievements/${string}/icons/${string}.webp`

    • Route for:

      • GET /app-assets/{application.id}/achievements/{achievement.id}/icons/{achievement.icon}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/app-assets/${string}/achievements/${string}/icons/${string}.jpeg` | `/app-assets/${string}/achievements/${string}/icons/${string}.png` | `/app-assets/${string}/achievements/${string}/icons/${string}.webp`

  • applicationAsset: function
    • applicationAsset(applicationId: string, applicationAssetId: string, format: ApplicationAssetFormat): `/app-icons/${string}/${string}.jpeg` | `/app-icons/${string}/${string}.png` | `/app-icons/${string}/${string}.webp`

    • Route for:

      • GET /app-icons/{application.id}/{application.asset_id}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/app-icons/${string}/${string}.jpeg` | `/app-icons/${string}/${string}.png` | `/app-icons/${string}/${string}.webp`

  • applicationCover: function
    • applicationCover(applicationId: string, applicationCoverImage: string, format: ApplicationCoverFormat): `/app-icons/${string}/${string}.jpeg` | `/app-icons/${string}/${string}.png` | `/app-icons/${string}/${string}.webp`

    • Route for:

      • GET /app-icons/{application.id}/{application.cover_image}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/app-icons/${string}/${string}.jpeg` | `/app-icons/${string}/${string}.png` | `/app-icons/${string}/${string}.webp`

  • applicationIcon: function
    • applicationIcon(applicationId: string, applicationIcon: string, format: ApplicationIconFormat): `/app-icons/${string}/${string}.jpeg` | `/app-icons/${string}/${string}.png` | `/app-icons/${string}/${string}.webp`

    • Route for:

      • GET /app-icons/{application.id}/{application.icon}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/app-icons/${string}/${string}.jpeg` | `/app-icons/${string}/${string}.png` | `/app-icons/${string}/${string}.webp`

  • defaultUserAvatar: function
    • defaultUserAvatar(userDiscriminator: DefaultUserAvatarAssets): /embed/avatars/0.png | /embed/avatars/2.png | /embed/avatars/1.png | /embed/avatars/3.png | /embed/avatars/4.png | /embed/avatars/5.png

    • Route for:

      • GET /embed/avatars/{user.discriminator % 5}.png

      The userDiscriminator parameter should be the user discriminator modulo 5 (e.g. 1337 % 5 = 2)

      This route supports the extension: PNG


      Parameters

      Returns /embed/avatars/0.png | /embed/avatars/2.png | /embed/avatars/1.png | /embed/avatars/3.png | /embed/avatars/4.png | /embed/avatars/5.png

  • emoji: function
    • emoji(emojiId: string, format: EmojiFormat): `/emojis/${string}.jpeg` | `/emojis/${string}.png` | `/emojis/${string}.webp` | `/emojis/${string}.gif`

    • Route for:

      • GET /emojis/{emoji.id}.{png|jpeg|webp|gif}

      As this route supports GIFs, the hash will begin with a_ if it is available in GIF format

      This route supports the extensions: PNG, JPEG, WebP, GIF


      Parameters

      Returns `/emojis/${string}.jpeg` | `/emojis/${string}.png` | `/emojis/${string}.webp` | `/emojis/${string}.gif`

  • guildBanner: function
    • guildBanner(guildId: string, guildBanner: string, format: GuildBannerFormat): `/banners/${string}/${string}.jpeg` | `/banners/${string}/${string}.png` | `/banners/${string}/${string}.webp` | `/banners/${string}/${string}.gif`

    • Route for:

      • GET /banners/{guild.id}/{guild.banner}.{png|jpeg|webp|gif}

      As this route supports GIFs, the hash will begin with a_ if it is available in GIF format

      This route supports the extensions: PNG, JPEG, WebP, GIF


      Parameters

      Returns `/banners/${string}/${string}.jpeg` | `/banners/${string}/${string}.png` | `/banners/${string}/${string}.webp` | `/banners/${string}/${string}.gif`

  • guildDiscoverySplash: function
    • guildDiscoverySplash(guildId: string, guildDiscoverySplash: string, format: GuildDiscoverySplashFormat): `/discovery-splashes/${string}/${string}.jpeg` | `/discovery-splashes/${string}/${string}.png` | `/discovery-splashes/${string}/${string}.webp`

    • Route for:

      • GET /discovery-splashes/{guild.id}/{guild.discovery_splash}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/discovery-splashes/${string}/${string}.jpeg` | `/discovery-splashes/${string}/${string}.png` | `/discovery-splashes/${string}/${string}.webp`

  • guildIcon: function
    • guildIcon(guildId: string, guildIcon: string, format: GuildIconFormat): `icons/${string}/${string}.jpeg` | `icons/${string}/${string}.png` | `icons/${string}/${string}.webp` | `icons/${string}/${string}.gif`

    • Route for:

      • GET /guilds/{guild.id}/icons/{guild.id}.{png|jpeg|webp|gif}

      As this route supports GIFs, the hash will begin with a_ if it is available in GIF format

      This route supports the extensions: PNG, JPEG, WebP, GIF


      Parameters

      Returns `icons/${string}/${string}.jpeg` | `icons/${string}/${string}.png` | `icons/${string}/${string}.webp` | `icons/${string}/${string}.gif`

  • guildMemberAvatar: function
    • guildMemberAvatar(guildId: string, userId: string, memberAvatar: string, format: GuildMemberAvatarFormat): `/guilds/${string}/users/${string}/avatars/${string}.jpeg` | `/guilds/${string}/users/${string}/avatars/${string}.png` | `/guilds/${string}/users/${string}/avatars/${string}.webp` | `/guilds/${string}/users/${string}/avatars/${string}.gif`

    • Route for:

      • GET /guilds/{guild.id}/users/{user.id}/{guild_member.avatar}.{png|jpeg|webp|gif}

      As this route supports GIFs, the hash will begin with a_ if it is available in GIF format

      This route supports the extensions: PNG, JPEG, WebP, GIF


      Parameters

      Returns `/guilds/${string}/users/${string}/avatars/${string}.jpeg` | `/guilds/${string}/users/${string}/avatars/${string}.png` | `/guilds/${string}/users/${string}/avatars/${string}.webp` | `/guilds/${string}/users/${string}/avatars/${string}.gif`

  • guildMemberBanner: function
    • guildMemberBanner(guildId: string, userId: string, guildMemberBanner: string, format: GuildMemberBannerFormat): `/guilds/${string}/users/${string}/banners/${string}.jpeg` | `/guilds/${string}/users/${string}/banners/${string}.png` | `/guilds/${string}/users/${string}/banners/${string}.webp` | `/guilds/${string}/users/${string}/banners/${string}.gif`

    • Route for:

      • GET /guilds/${guild.id}/users/${user.id}/banners/${guild_member.banner}.{png|jpeg|webp|gif}

      This route supports the extensions: PNG, JPEG, WebP, GIF


      Parameters

      Returns `/guilds/${string}/users/${string}/banners/${string}.jpeg` | `/guilds/${string}/users/${string}/banners/${string}.png` | `/guilds/${string}/users/${string}/banners/${string}.webp` | `/guilds/${string}/users/${string}/banners/${string}.gif`

  • guildScheduledEventCover: function
    • guildScheduledEventCover(guildScheduledEventId: string, guildScheduledEventCoverImage: string, format: GuildScheduledEventCoverFormat): `/guild-events/${string}/${string}.jpeg` | `/guild-events/${string}/${string}.png` | `/guild-events/${string}/${string}.webp`

    • Route for:

      • GET /guild-events/{guild_scheduled_event.id}/{guild_scheduled_event.image}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/guild-events/${string}/${string}.jpeg` | `/guild-events/${string}/${string}.png` | `/guild-events/${string}/${string}.webp`

  • guildSplash: function
    • guildSplash(guildId: string, guildSplash: string, format: GuildSplashFormat): `/splashes/${string}/${string}.jpeg` | `/splashes/${string}/${string}.png` | `/splashes/${string}/${string}.webp`

    • Route for:

      • GET /splashes/{guild.id}/{guild.splash}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/splashes/${string}/${string}.jpeg` | `/splashes/${string}/${string}.png` | `/splashes/${string}/${string}.webp`

  • roleIcon: function
    • roleIcon(roleId: string, roleIcon: string, format: RoleIconFormat): `/role-icons/${string}/${string}.jpeg` | `/role-icons/${string}/${string}.png` | `/role-icons/${string}/${string}.webp`

    • Route for:

      • GET /role-icons/{role.id}/{role.icon}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/role-icons/${string}/${string}.jpeg` | `/role-icons/${string}/${string}.png` | `/role-icons/${string}/${string}.webp`

  • sticker: function
    • sticker(stickerId: string, format: StickerFormat): `/stickers/${string}.png` | `/stickers/${string}.json`

    • Route for:

      • GET /stickers/{sticker.id}.{png|json}

      This route supports the extensions: PNG, Lottie


      Parameters

      Returns `/stickers/${string}.png` | `/stickers/${string}.json`

  • stickerPackBanner: function
    • stickerPackBanner(stickerPackBannerAssetId: string, format: StickerPackBannerFormat): `/app-assets/710982414301790216/store/${string}.jpeg` | `/app-assets/710982414301790216/store/${string}.png` | `/app-assets/710982414301790216/store/${string}.webp`

    • Route for:

      • GET /app-assets/710982414301790216/store/{sticker_pack.banner.asset_id}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/app-assets/710982414301790216/store/${string}.jpeg` | `/app-assets/710982414301790216/store/${string}.png` | `/app-assets/710982414301790216/store/${string}.webp`

  • teamIcon: function
    • teamIcon(teamId: string, teamIcon: string, format: TeamIconFormat): `/team-icons/${string}/${string}.jpeg` | `/team-icons/${string}/${string}.png` | `/team-icons/${string}/${string}.webp`

    • Route for:

      • GET team-icons/{team.id}/{team.icon}.{png|jpeg|webp}

      This route supports the extensions: PNG, JPEG, WebP


      Parameters

      Returns `/team-icons/${string}/${string}.jpeg` | `/team-icons/${string}/${string}.png` | `/team-icons/${string}/${string}.webp`

  • userAvatar: function
    • userAvatar(userId: string, userAvatar: string, format: UserAvatarFormat): `/avatars/${string}/${string}.jpeg` | `/avatars/${string}/${string}.png` | `/avatars/${string}/${string}.webp` | `/avatars/${string}/${string}.gif`

    • Route for:

      • GET /avatars/{user.id}/{user.avatar}.{png|jpeg|webp|gif}

      As this route supports GIFs, the hash will begin with a_ if it is available in GIF format

      This route supports the extensions: PNG, JPEG, WebP, GIF


      Parameters

      Returns `/avatars/${string}/${string}.jpeg` | `/avatars/${string}/${string}.png` | `/avatars/${string}/${string}.webp` | `/avatars/${string}/${string}.gif`

  • userBanner: function
    • userBanner(userId: string, userBanner: string, format: UserBannerFormat): `/banners/${string}/${string}.jpeg` | `/banners/${string}/${string}.png` | `/banners/${string}/${string}.webp` | `/banners/${string}/${string}.gif`

    • Route for:

      • GET /banners/{user.id}/{user.banner}.{png|jpeg|webp|gif}

      As this route supports GIFs, the hash will begin with a_ if it is available in GIF format

      This route supports the extensions: PNG, JPEG, WebP, GIF


      Parameters

      Returns `/banners/${string}/${string}.jpeg` | `/banners/${string}/${string}.png` | `/banners/${string}/${string}.webp` | `/banners/${string}/${string}.gif`

constGatewayVersion

GatewayVersion: 9 = '9'

constOAuth2Routes

OAuth2Routes: { authorizationURL: https://discord.com/api/v9/oauth2/authorize; tokenRevocationURL: https://discord.com/api/v9/oauth2/token/revoke; tokenURL: https://discord.com/api/v9/oauth2/token } = ...

Type declaration

  • authorizationURL: https://discord.com/api/v9/oauth2/authorize
  • tokenRevocationURL: https://discord.com/api/v9/oauth2/token/revoke
  • tokenURL: https://discord.com/api/v9/oauth2/token

constRouteBases

RouteBases: { api: https://discord.com/api/v9; cdn: https://cdn.discordapp.com; gift: https://discord.gift; invite: https://discord.gg; scheduledEvent: https://discord.com/events; template: https://discord.new } = ...

Type declaration

  • api: https://discord.com/api/v9
  • cdn: https://cdn.discordapp.com
  • gift: https://discord.gift
  • invite: https://discord.gg
  • scheduledEvent: https://discord.com/events
  • template: https://discord.new

constRoutes

Routes: { applicationCommand: any; applicationCommandPermissions: any; applicationCommands: any; applicationGuildCommand: any; applicationGuildCommands: any; channel: any; channelBulkDelete: any; channelFollowers: any; channelInvites: any; channelJoinedArchivedThreads: any; channelMessage: any; channelMessageAllReactions: any; channelMessageCrosspost: any; channelMessageOwnReaction: any; channelMessageReaction: any; channelMessageUserReaction: any; channelMessages: any; channelPermission: any; channelPin: any; channelPins: any; channelRecipient: any; channelThreads: any; channelTyping: any; channelWebhooks: any; gateway: any; gatewayBot: any; guild: any; guildActiveThreads: any; guildApplicationCommandsPermissions: any; guildAuditLog: any; guildAutoModerationRule: any; guildAutoModerationRules: any; guildBan: any; guildBans: any; guildChannels: any; guildCurrentMemberNickname: any; guildEmoji: any; guildEmojis: any; guildIntegration: any; guildIntegrations: any; guildInvites: any; guildMFA: any; guildMember: any; guildMemberRole: any; guildMemberVerification: any; guildMembers: any; guildMembersSearch: any; guildPreview: any; guildPrune: any; guildRole: any; guildRoles: any; guildScheduledEvent: any; guildScheduledEventUsers: any; guildScheduledEvents: any; guildSticker: any; guildStickers: any; guildTemplate: any; guildTemplates: any; guildVanityUrl: any; guildVoiceRegions: any; guildVoiceState: any; guildWebhooks: any; guildWelcomeScreen: any; guildWidgetImage: any; guildWidgetJSON: any; guildWidgetSettings: any; guilds: any; interactionCallback: any; invite: any; nitroStickerPacks: any; oauth2Authorization: any; oauth2CurrentApplication: any; oauth2CurrentAuthorization: any; oauth2TokenExchange: any; oauth2TokenRevocation: any; stageInstance: any; stageInstances: any; sticker: any; template: any; threadMembers: any; threads: any; user: any; userChannels: any; userConnections: any; userGuild: any; userGuildMember: any; userGuilds: any; voiceRegions: any; webhook: any; webhookMessage: any; webhookPlatform: any } = ...

Type declaration

  • applicationCommand: function
    • applicationCommand(applicationId: string, commandId: string): `/applications/${string}/commands/${string}`

    • Route for:

      • GET /applications/{application.id}/commands/{command.id}
      • PATCH /applications/{application.id}/commands/{command.id}
      • DELETE /applications/{application.id}/commands/{command.id}

      Parameters

      • applicationId: string
      • commandId: string

      Returns `/applications/${string}/commands/${string}`

  • applicationCommandPermissions: function
    • applicationCommandPermissions(applicationId: string, guildId: string, commandId: string): `/applications/${string}/guilds/${string}/commands/${string}/permissions`

    • Route for:

      • GET /applications/{application.id}/guilds/{guild.id}/commands/{command.id}/permissions
      • PUT /applications/{application.id}/guilds/{guild.id}/commands/{command.id}/permissions

      Parameters

      • applicationId: string
      • guildId: string
      • commandId: string

      Returns `/applications/${string}/guilds/${string}/commands/${string}/permissions`

  • applicationCommands: function
    • applicationCommands(applicationId: string): `/applications/${string}/commands`

    • Route for:

      • GET /applications/{application.id}/commands
      • PUT /applications/{application.id}/commands
      • POST /applications/{application.id}/commands

      Parameters

      • applicationId: string

      Returns `/applications/${string}/commands`

  • applicationGuildCommand: function
    • applicationGuildCommand(applicationId: string, guildId: string, commandId: string): `/applications/${string}/guilds/${string}/commands/${string}`

    • Route for:

      • GET /applications/{application.id}/guilds/{guild.id}/commands/{command.id}
      • PATCH /applications/{application.id}/guilds/{guild.id}/commands/{command.id}
      • DELETE /applications/{application.id}/guilds/{guild.id}/commands/{command.id}

      Parameters

      • applicationId: string
      • guildId: string
      • commandId: string

      Returns `/applications/${string}/guilds/${string}/commands/${string}`

  • applicationGuildCommands: function
    • applicationGuildCommands(applicationId: string, guildId: string): `/applications/${string}/guilds/${string}/commands`

    • Route for:

      • GET /applications/{application.id}/guilds/{guild.id}/commands
      • PUT /applications/{application.id}/guilds/{guild.id}/commands
      • POST /applications/{application.id}/guilds/{guild.id}/commands

      Parameters

      • applicationId: string
      • guildId: string

      Returns `/applications/${string}/guilds/${string}/commands`

  • channel: function
    • channel(channelId: string): `/channels/${string}`

    • Route for:

      • GET /channels/{channel.id}
      • PATCH /channels/{channel.id}
      • DELETE /channels/{channel.id}

      Parameters

      • channelId: string

      Returns `/channels/${string}`

  • channelBulkDelete: function
    • channelBulkDelete(channelId: string): `/channels/${string}/messages/bulk-delete`

    • Route for:

      • POST /channels/{channel.id}/messages/bulk-delete

      Parameters

      • channelId: string

      Returns `/channels/${string}/messages/bulk-delete`

  • channelFollowers: function
    • channelFollowers(channelId: string): `/channels/${string}/followers`

    • Route for:

      • POST /channels/{channel.id}/followers

      Parameters

      • channelId: string

      Returns `/channels/${string}/followers`

  • channelInvites: function
    • channelInvites(channelId: string): `/channels/${string}/invites`

    • Route for:

      • GET /channels/{channel.id}/invites
      • POST /channels/{channel.id}/invites

      Parameters

      • channelId: string

      Returns `/channels/${string}/invites`

  • channelJoinedArchivedThreads: function
    • channelJoinedArchivedThreads(channelId: string): `/channels/${string}/users/@me/threads/archived/private`

    • Route for:

      • GET /channels/{channel.id}/users/@me/threads/archived/prviate

      Parameters

      • channelId: string

      Returns `/channels/${string}/users/@me/threads/archived/private`

  • channelMessage: function
    • channelMessage(channelId: string, messageId: string): `/channels/${string}/messages/${string}`

    • Route for:

      • GET /channels/{channel.id}/messages/{message.id}
      • PATCH /channels/{channel.id}/messages/{message.id}
      • DELETE /channels/{channel.id}/messages/{message.id}

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/messages/${string}`

  • channelMessageAllReactions: function
    • channelMessageAllReactions(channelId: string, messageId: string): `/channels/${string}/messages/${string}/reactions`

    • Route for:

      • DELETE /channels/{channel.id}/messages/{message.id}/reactions

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/messages/${string}/reactions`

  • channelMessageCrosspost: function
    • channelMessageCrosspost(channelId: string, messageId: string): `/channels/${string}/messages/${string}/crosspost`

    • Route for:

      • POST /channels/{channel.id}/messages/{message.id}/crosspost

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/messages/${string}/crosspost`

  • channelMessageOwnReaction: function
    • channelMessageOwnReaction(channelId: string, messageId: string, emoji: string): `/channels/${string}/messages/${string}/reactions/${string}/@me`

    • Route for:

      • PUT /channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me
      • DELETE /channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me

      Note: You need to URL encode the emoji yourself


      Parameters

      • channelId: string
      • messageId: string
      • emoji: string

      Returns `/channels/${string}/messages/${string}/reactions/${string}/@me`

  • channelMessageReaction: function
    • channelMessageReaction(channelId: string, messageId: string, emoji: string): `/channels/${string}/messages/${string}/reactions/${string}`

    • Route for:

      • GET /channels/{channel.id}/messages/{message.id}/reactions/{emoji}
      • DELETE /channels/{channel.id}/messages/{message.id}/reactions/{emoji}

      Note: You need to URL encode the emoji yourself


      Parameters

      • channelId: string
      • messageId: string
      • emoji: string

      Returns `/channels/${string}/messages/${string}/reactions/${string}`

  • channelMessageUserReaction: function
    • channelMessageUserReaction(channelId: string, messageId: string, emoji: string, userId: string): `/channels/${string}/messages/${string}/reactions/${string}/${string}`

    • Route for:

      • DELETE /channels/{channel.id}/messages/{message.id}/reactions/{emoji}/{user.id}

      Note: You need to URL encode the emoji yourself


      Parameters

      • channelId: string
      • messageId: string
      • emoji: string
      • userId: string

      Returns `/channels/${string}/messages/${string}/reactions/${string}/${string}`

  • channelMessages: function
    • channelMessages(channelId: string): `/channels/${string}/messages`

    • Route for:

      • GET /channels/{channel.id}/messages
      • POST /channels/{channel.id}/messages

      Parameters

      • channelId: string

      Returns `/channels/${string}/messages`

  • channelPermission: function
    • channelPermission(channelId: string, overwriteId: string): `/channels/${string}/permissions/${string}`

    • Route for:

      • PUT /channels/{channel.id}/permissions/{overwrite.id}
      • DELETE /channels/{channel.id}/permissions/{overwrite.id}

      Parameters

      • channelId: string
      • overwriteId: string

      Returns `/channels/${string}/permissions/${string}`

  • channelPin: function
    • channelPin(channelId: string, messageId: string): `/channels/${string}/pins/${string}`

    • Route for:

      • PUT /channels/{channel.id}/pins/{message.id}
      • DELETE /channels/{channel.id}/pins/{message.id}

      Parameters

      • channelId: string
      • messageId: string

      Returns `/channels/${string}/pins/${string}`

  • channelPins: function
    • channelPins(channelId: string): `/channels/${string}/pins`

    • Route for:

      • GET /channels/{channel.id}/pins

      Parameters

      • channelId: string

      Returns `/channels/${string}/pins`

  • channelRecipient: function
    • channelRecipient(channelId: string, userId: string): `/channels/${string}/recipients/${string}`

    • Route for:

      • PUT /channels/{channel.id}/recipients/{user.id}
      • DELETE /channels/{channel.id}/recipients/{user.id}

      Parameters

      • channelId: string
      • userId: string

      Returns `/channels/${string}/recipients/${string}`

  • channelThreads: function
    • channelThreads(channelId: string, archived?: public | private): `/channels/${string}/threads/active` | `/channels/${string}/threads/archived/public` | `/channels/${string}/threads/archived/private`

    • Route for:

      • GET /channels/{channel.id}/threads/active (deprecated, removed in API v10, use List Active Guild Threads instead.)
      • GET /channels/{channel.id}/threads/archived/public
      • GET /channels/{channel.id}/threads/archived/private

      Parameters

      • channelId: string
      • optionalarchived: public | private

      Returns `/channels/${string}/threads/active` | `/channels/${string}/threads/archived/public` | `/channels/${string}/threads/archived/private`

  • channelTyping: function
    • channelTyping(channelId: string): `/channels/${string}/typing`

    • Route for:

      • POST /channels/{channel.id}/typing

      Parameters

      • channelId: string

      Returns `/channels/${string}/typing`

  • channelWebhooks: function
    • channelWebhooks(channelId: string): `/channels/${string}/webhooks`

    • Route for:

      • GET /channels/{channel.id}/webhooks
      • POST /channels/{channel.id}/webhooks

      Parameters

      • channelId: string

      Returns `/channels/${string}/webhooks`

  • gateway: function
    • gateway(): /gateway

    • Route for:

      • GET /gateway

      Returns /gateway

  • gatewayBot: function
    • gatewayBot(): /gateway/bot

    • Route for:

      • GET /gateway/bot

      Returns /gateway/bot

  • guild: function
    • guild(guildId: string): `/guilds/${string}`

    • Route for:

      • GET /guilds/{guild.id}
      • PATCH /guilds/{guild.id}
      • DELETE /guilds/{guild.id}

      Parameters

      • guildId: string

      Returns `/guilds/${string}`

  • guildActiveThreads: function
    • guildActiveThreads(guildId: string): `/guilds/${string}/threads/active`

    • Route for:

      • GET /guilds/{guild.id}/threads/active

      Parameters

      • guildId: string

      Returns `/guilds/${string}/threads/active`

  • guildApplicationCommandsPermissions: function
    • guildApplicationCommandsPermissions(applicationId: string, guildId: string): `/applications/${string}/guilds/${string}/commands/permissions`

    • Route for:

      • GET /applications/{application.id}/guilds/{guild.id}/commands/permissions
      • PUT /applications/{application.id}/guilds/{guild.id}/commands/permissions

      Parameters

      • applicationId: string
      • guildId: string

      Returns `/applications/${string}/guilds/${string}/commands/permissions`

  • guildAuditLog: function
    • guildAuditLog(guildId: string): `/guilds/${string}/audit-logs`

    • Route for:

      • GET /guilds/{guild.id}/audit-logs

      Parameters

      • guildId: string

      Returns `/guilds/${string}/audit-logs`

  • guildAutoModerationRule: function
    • guildAutoModerationRule(guildId: string, ruleId: string): `/guilds/${string}/auto-moderation/rules/${string}`

    • Routes for:

      • GET /guilds/{guild.id}/auto-moderation/rules/{rule.id}
      • PATCH /guilds/{guild.id}/auto-moderation/rules/{rule.id}
      • DELETE /guilds/{guild.id}/auto-moderation/rules/{rule.id}

      Parameters

      • guildId: string
      • ruleId: string

      Returns `/guilds/${string}/auto-moderation/rules/${string}`

  • guildAutoModerationRules: function
    • guildAutoModerationRules(guildId: string): `/guilds/${string}/auto-moderation/rules`

    • Route for:

      • GET /guilds/{guild.id}/auto-moderation/rules
      • POST /guilds/{guild.id}/auto-moderation/rules

      Parameters

      • guildId: string

      Returns `/guilds/${string}/auto-moderation/rules`

  • guildBan: function
    • guildBan(guildId: string, userId: string): `/guilds/${string}/bans/${string}`

    • Route for:

      • GET /guilds/{guild.id}/bans/{user.id}
      • PUT /guilds/{guild.id}/bans/{user.id}
      • DELETE /guilds/{guild.id}/bans/{user.id}

      Parameters

      • guildId: string
      • userId: string

      Returns `/guilds/${string}/bans/${string}`

  • guildBans: function
    • guildBans(guildId: string): `/guilds/${string}/bans`

    • Route for:

      • GET /guilds/{guild.id}/bans

      Parameters

      • guildId: string

      Returns `/guilds/${string}/bans`

  • guildChannels: function
    • guildChannels(guildId: string): `/guilds/${string}/channels`

    • Route for:

      • GET /guilds/{guild.id}/channels
      • POST /guilds/{guild.id}/channels
      • PATCH /guilds/{guild.id}/channels

      Parameters

      • guildId: string

      Returns `/guilds/${string}/channels`

  • guildCurrentMemberNickname: function
    • guildCurrentMemberNickname(guildId: string): `/guilds/${string}/members/@me/nick`

    • Route for:

      • PATCH /guilds/{guild.id}/members/@me/nick
      @deprecated

      Use Routes.guildMember instead.


      Parameters

      • guildId: string

      Returns `/guilds/${string}/members/@me/nick`

  • guildEmoji: function
    • guildEmoji(guildId: string, emojiId: string): `/guilds/${string}/emojis/${string}`

    • Route for:

      • GET /guilds/{guild.id}/emojis/{emoji.id}
      • PATCH /guilds/{guild.id}/emojis/{emoji.id}
      • DELETE /guilds/{guild.id}/emojis/{emoji.id}

      Parameters

      • guildId: string
      • emojiId: string

      Returns `/guilds/${string}/emojis/${string}`

  • guildEmojis: function
    • guildEmojis(guildId: string): `/guilds/${string}/emojis`

    • Route for:

      • GET /guilds/{guild.id}/emojis
      • POST /guilds/{guild.id}/emojis

      Parameters

      • guildId: string

      Returns `/guilds/${string}/emojis`

  • guildIntegration: function
    • guildIntegration(guildId: string, integrationId: string): `/guilds/${string}/integrations/${string}`

    • Route for:

      • DELETE /guilds/{guild.id}/integrations/{integration.id}

      Parameters

      • guildId: string
      • integrationId: string

      Returns `/guilds/${string}/integrations/${string}`

  • guildIntegrations: function
    • guildIntegrations(guildId: string): `/guilds/${string}/integrations`

    • Route for:

      • GET /guilds/{guild.id}/integrations

      Parameters

      • guildId: string

      Returns `/guilds/${string}/integrations`

  • guildInvites: function
    • guildInvites(guildId: string): `/guilds/${string}/invites`

    • Route for:

      • GET /guilds/{guild.id}/invites

      Parameters

      • guildId: string

      Returns `/guilds/${string}/invites`

  • guildMFA: function
    • guildMFA(guildId: string): `/guilds/${string}/mfa`

    • Route for:

      • POST /guilds/{guild.id}/mfa

      Parameters

      • guildId: string

      Returns `/guilds/${string}/mfa`

  • guildMember: function
    • guildMember(guildId: string, userId?: string): `/guilds/${string}/members/${string}`

    • Route for:

      • GET /guilds/{guild.id}/members/{user.id}
      • PUT /guilds/{guild.id}/members/{user.id}
      • PATCH /guilds/{guild.id}/members/@me
      • PATCH /guilds/{guild.id}/members/{user.id}
      • DELETE /guilds/{guild.id}/members/{user.id}

      Parameters

      • guildId: string
      • userId: string = '@me'

      Returns `/guilds/${string}/members/${string}`

  • guildMemberRole: function
    • guildMemberRole(guildId: string, memberId: string, roleId: string): `/guilds/${string}/members/${string}/roles/${string}`

    • Route for:

      • PUT /guilds/{guild.id}/members/{user.id}/roles/{role.id}
      • DELETE /guilds/{guild.id}/members/{user.id}/roles/{role.id}

      Parameters

      • guildId: string
      • memberId: string
      • roleId: string

      Returns `/guilds/${string}/members/${string}/roles/${string}`

  • guildMemberVerification: function
    • guildMemberVerification(guildId: string): `/guilds/${string}/member-verification`

    • Route for:

      • GET /guilds/{guild.id}/member-verification
      • PATCH /guilds/{guild.id}/member-verification

      Parameters

      • guildId: string

      Returns `/guilds/${string}/member-verification`

  • guildMembers: function
    • guildMembers(guildId: string): `/guilds/${string}/members`

    • Route for:

      • GET /guilds/{guild.id}/members

      Parameters

      • guildId: string

      Returns `/guilds/${string}/members`

  • guildMembersSearch: function
    • guildMembersSearch(guildId: string): `/guilds/${string}/members/search`

    • Route for:

      • GET /guilds/{guild.id}/members/search

      Parameters

      • guildId: string

      Returns `/guilds/${string}/members/search`

  • guildPreview: function
    • guildPreview(guildId: string): `/guilds/${string}/preview`

    • Route for:

      • GET /guilds/{guild.id}/preview

      Parameters

      • guildId: string

      Returns `/guilds/${string}/preview`

  • guildPrune: function
    • guildPrune(guildId: string): `/guilds/${string}/prune`

    • Route for:

      • GET /guilds/{guild.id}/prune
      • POST /guilds/{guild.id}/prune

      Parameters

      • guildId: string

      Returns `/guilds/${string}/prune`

  • guildRole: function
    • guildRole(guildId: string, roleId: string): `/guilds/${string}/roles/${string}`

    • Route for:

      • PATCH /guilds/{guild.id}/roles/{role.id}
      • DELETE /guilds/{guild.id}/roles/{role.id}

      Parameters

      • guildId: string
      • roleId: string

      Returns `/guilds/${string}/roles/${string}`

  • guildRoles: function
    • guildRoles(guildId: string): `/guilds/${string}/roles`

    • Route for:

      • GET /guilds/{guild.id}/roles
      • POST /guilds/{guild.id}/roles
      • PATCH /guilds/{guild.id}/roles

      Parameters

      • guildId: string

      Returns `/guilds/${string}/roles`

  • guildScheduledEvent: function
    • guildScheduledEvent(guildId: string, guildScheduledEventId: string): `/guilds/${string}/scheduled-events/${string}`

    • Route for:

      • GET /guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}
      • PATCH /guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}
      • DELETE /guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}

      Parameters

      • guildId: string
      • guildScheduledEventId: string

      Returns `/guilds/${string}/scheduled-events/${string}`

  • guildScheduledEventUsers: function
    • guildScheduledEventUsers(guildId: string, guildScheduledEventId: string): `/guilds/${string}/scheduled-events/${string}/users`

    • Route for:

      • GET /guilds/{guild.id}/scheduled-events/{guildScheduledEvent.id}/users

      Parameters

      • guildId: string
      • guildScheduledEventId: string

      Returns `/guilds/${string}/scheduled-events/${string}/users`

  • guildScheduledEvents: function
    • guildScheduledEvents(guildId: string): `/guilds/${string}/scheduled-events`

    • Route for:

      • GET /guilds/{guild.id}/scheduled-events
      • POST /guilds/{guild.id}/scheduled-events

      Parameters

      • guildId: string

      Returns `/guilds/${string}/scheduled-events`

  • guildSticker: function
    • guildSticker(guildId: string, stickerId: string): `/guilds/${string}/stickers/${string}`

    • Route for:

      • GET /guilds/{guild.id}/stickers/{sticker.id}
      • PATCH /guilds/{guild.id}/stickers/{sticker.id}
      • DELETE /guilds/{guild.id}/stickers/{sticker.id}

      Parameters

      • guildId: string
      • stickerId: string

      Returns `/guilds/${string}/stickers/${string}`

  • guildStickers: function
    • guildStickers(guildId: string): `/guilds/${string}/stickers`

    • Route for:

      • GET /guilds/{guild.id}/stickers
      • POST /guilds/{guild.id}/stickers

      Parameters

      • guildId: string

      Returns `/guilds/${string}/stickers`

  • guildTemplate: function
    • guildTemplate(guildId: string, code: string): `/guilds/${string}/templates/${string}`

    • Route for:

      • PUT /guilds/{guild.id}/templates/{template.code}
      • PATCH /guilds/{guild.id}/templates/{template.code}
      • DELETE /guilds/{guild.id}/templates/{template.code}

      Parameters

      • guildId: string
      • code: string

      Returns `/guilds/${string}/templates/${string}`

  • guildTemplates: function
    • guildTemplates(guildId: string): `/guilds/${string}/templates`

    • Route for:

      • GET /guilds/{guild.id}/templates
      • POST /guilds/{guild.id}/templates

      Parameters

      • guildId: string

      Returns `/guilds/${string}/templates`

  • guildVanityUrl: function
    • guildVanityUrl(guildId: string): `/guilds/${string}/vanity-url`

    • Route for:

      • GET /guilds/{guild.id}/vanity-url

      Parameters

      • guildId: string

      Returns `/guilds/${string}/vanity-url`

  • guildVoiceRegions: function
    • guildVoiceRegions(guildId: string): `/guilds/${string}/regions`

    • Route for:

      • GET /guilds/{guild.id}/regions

      Parameters

      • guildId: string

      Returns `/guilds/${string}/regions`

  • guildVoiceState: function
    • guildVoiceState(guildId: string, userId?: string): `/guilds/${string}/voice-states/${string}`

    • Route for:

      • PATCH /guilds/{guild.id}/voice-states/@me
      • PATCH /guilds/{guild.id}/voice-states/{user.id}

      Parameters

      • guildId: string
      • userId: string = '@me'

      Returns `/guilds/${string}/voice-states/${string}`

  • guildWebhooks: function
    • guildWebhooks(guildId: string): `/guilds/${string}/webhooks`

    • Route for:

      • GET /guilds/{guild.id}/webhooks

      Parameters

      • guildId: string

      Returns `/guilds/${string}/webhooks`

  • guildWelcomeScreen: function
    • guildWelcomeScreen(guildId: string): `/guilds/${string}/welcome-screen`

    • Route for:

      • GET /guilds/{guild.id}/welcome-screen
      • PATCH /guilds/{guild.id}/welcome-screen

      Parameters

      • guildId: string

      Returns `/guilds/${string}/welcome-screen`

  • guildWidgetImage: function
    • guildWidgetImage(guildId: string): `/guilds/${string}/widget.png`

    • Route for:

      • GET /guilds/{guild.id}/widget.png

      Parameters

      • guildId: string

      Returns `/guilds/${string}/widget.png`

  • guildWidgetJSON: function
    • guildWidgetJSON(guildId: string): `/guilds/${string}/widget.json`

    • Route for:

      • GET /guilds/{guild.id}/widget.json

      Parameters

      • guildId: string

      Returns `/guilds/${string}/widget.json`

  • guildWidgetSettings: function
    • guildWidgetSettings(guildId: string): `/guilds/${string}/widget`

    • Route for:

      • GET /guilds/{guild.id}/widget
      • PATCH /guilds/{guild.id}/widget

      Parameters

      • guildId: string

      Returns `/guilds/${string}/widget`

  • guilds: function
    • guilds(): /guilds

    • Route for:

      • POST /guilds

      Returns /guilds

  • interactionCallback: function
    • interactionCallback(interactionId: string, interactionToken: string): `/interactions/${string}/${string}/callback`

    • Route for:

      • POST /interactions/{interaction.id}/{interaction.token}/callback

      Parameters

      • interactionId: string
      • interactionToken: string

      Returns `/interactions/${string}/${string}/callback`

  • invite: function
    • invite(code: string): `/invites/${string}`

    • Route for:

      • GET /invites/{invite.code}
      • DELETE /invites/{invite.code}

      Parameters

      • code: string

      Returns `/invites/${string}`

  • nitroStickerPacks: function
    • nitroStickerPacks(): /sticker-packs

    • Route for:

      • GET /sticker-packs

      Returns /sticker-packs

  • oauth2Authorization: function
    • oauth2Authorization(): /oauth2/authorize

    • Route for:

      • GET /oauth2/authorize

      Returns /oauth2/authorize

  • oauth2CurrentApplication: function
    • oauth2CurrentApplication(): /oauth2/applications/@me

    • Route for:

      • GET /oauth2/applications/@me

      Returns /oauth2/applications/@me

  • oauth2CurrentAuthorization: function
    • oauth2CurrentAuthorization(): /oauth2/@me

    • Route for:

      • GET /oauth2/@me

      Returns /oauth2/@me

  • oauth2TokenExchange: function
    • oauth2TokenExchange(): /oauth2/token

    • Route for:

      • POST /oauth2/token

      Returns /oauth2/token

  • oauth2TokenRevocation: function
    • oauth2TokenRevocation(): /oauth2/token/revoke

    • Route for:

      • POST /oauth2/token/revoke

      Returns /oauth2/token/revoke

  • stageInstance: function
    • stageInstance(channelId: string): `/stage-instances/${string}`

    • Route for:

      • GET /stage-instances/{channel.id}
      • PATCH /stage-instances/{channel.id}
      • DELETE /stage-instances/{channel.id}

      Parameters

      • channelId: string

      Returns `/stage-instances/${string}`

  • stageInstances: function
    • stageInstances(): /stage-instances

    • Route for:

      • POST /stage-instances

      Returns /stage-instances

  • sticker: function
    • sticker(stickerId: string): `/stickers/${string}`

    • Route for:

      • GET /stickers/{sticker.id}

      Parameters

      • stickerId: string

      Returns `/stickers/${string}`

  • template: function
    • template(code: string): `/guilds/templates/${string}`

    • Route for:

      • GET /guilds/templates/{template.code}
      • POST /guilds/templates/{template.code}

      Parameters

      • code: string

      Returns `/guilds/templates/${string}`

  • threadMembers: function
    • threadMembers(threadId: string, userId?: string): `/channels/${string}/thread-members` | `/channels/${string}/thread-members/${string}`

    • Route for:

      • GET /channels/{thread.id}/thread-members
      • GET /channels/{thread.id}/thread-members/{user.id}
      • PUT /channels/{thread.id}/thread-members/@me
      • PUT /channels/{thread.id}/thread-members/{user.id}
      • DELETE /channels/{thread.id}/thread-members/@me
      • DELETE /channels/{thread.id}/thread-members/{user.id}

      Parameters

      • threadId: string
      • optionaluserId: string

      Returns `/channels/${string}/thread-members` | `/channels/${string}/thread-members/${string}`

  • threads: function
    • threads(parentId: string, messageId?: string): `/channels/${string}/threads` | `/channels/${string}/messages/${string}/threads`

    • Route for:

      • POST /channels/{channel.id}/threads
      • POST /channels/{channel.id}/messages/{message.id}/threads

      Parameters

      • parentId: string
      • optionalmessageId: string

      Returns `/channels/${string}/threads` | `/channels/${string}/messages/${string}/threads`

  • user: function
    • user(userId?: string): `/users/${string}`

    • Route for:

      • GET /users/@me
      • GET /users/{user.id}
      • PATCH /users/@me

      Parameters

      • userId: string = '@me'

      Returns `/users/${string}`

  • userChannels: function
    • userChannels(): /users/@me/channels

    • Route for:

      • POST /users/@me/channels

      Returns /users/@me/channels

  • userConnections: function
    • userConnections(): /users/@me/connections

    • Route for:

      • GET /users/@me/connections

      Returns /users/@me/connections

  • userGuild: function
    • userGuild(guildId: string): `/users/@me/guilds/${string}`

    • Route for:

      • DELETE /users/@me/guilds/{guild.id}

      Parameters

      • guildId: string

      Returns `/users/@me/guilds/${string}`

  • userGuildMember: function
    • userGuildMember(guildId: string): `/users/@me/guilds/${string}/member`

    • Route for:

      • GET /users/@me/guilds/{guild.id}/member

      Parameters

      • guildId: string

      Returns `/users/@me/guilds/${string}/member`

  • userGuilds: function
    • userGuilds(): /users/@me/guilds

    • Route for:

      • GET /users/@me/guilds

      Returns /users/@me/guilds

  • voiceRegions: function
    • voiceRegions(): /voice/regions

    • Route for:

      • GET /voice/regions

      Returns /voice/regions

  • webhook: function
    • webhook(webhookId: string, webhookToken?: string): `/webhooks/${string}` | `/webhooks/${string}/${string}`

    • Route for:

      • GET /webhooks/{webhook.id}
      • GET /webhooks/{webhook.id}/{webhook.token}
      • PATCH /webhooks/{webhook.id}
      • PATCH /webhooks/{webhook.id}/{webhook.token}
      • DELETE /webhooks/{webhook.id}
      • DELETE /webhooks/{webhook.id}/{webhook.token}
      • POST /webhooks/{webhook.id}/{webhook.token}
      • POST /webhooks/{application.id}/{interaction.token}

      Parameters

      • webhookId: string
      • optionalwebhookToken: string

      Returns `/webhooks/${string}` | `/webhooks/${string}/${string}`

  • webhookMessage: function
    • webhookMessage(webhookId: string, webhookToken: string, messageId?: string): `/webhooks/${string}/${string}/messages/${string}`

    • Route for:

      • GET /webhooks/{webhook.id}/{webhook.token}/messages/@original
      • GET /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}
      • PATCH /webhooks/{webhook.id}/{webhook.token}/messages/@original
      • PATCH /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}
      • DELETE /webhooks/{webhook.id}/{webhook.token}/messages/@original
      • DELETE /webhooks/{webhook.id}/{webhook.token}/messages/{message.id}
      • PATCH /webhooks/{application.id}/{interaction.token}/messages/@original
      • PATCH /webhooks/{application.id}/{interaction.token}/messages/{message.id}
      • DELETE /webhooks/{application.id}/{interaction.token}/messages/{message.id}

      Parameters

      • webhookId: string
      • webhookToken: string
      • messageId: string = '@original'

      Returns `/webhooks/${string}/${string}/messages/${string}`

  • webhookPlatform: function
    • webhookPlatform(webhookId: string, webhookToken: string, platform: github | slack): `/webhooks/${string}/${string}/github` | `/webhooks/${string}/${string}/slack`

    • Route for:

      • POST /webhooks/{webhook.id}/{webhook.token}/github
      • POST /webhooks/{webhook.id}/{webhook.token}/slack

      Parameters

      • webhookId: string
      • webhookToken: string
      • platform: github | slack

      Returns `/webhooks/${string}/${string}/github` | `/webhooks/${string}/${string}/slack`

constStickerPackApplicationId

StickerPackApplicationId: 710982414301790216 = '710982414301790216'