Skip to main content
Version: Next

discord-api-types/payloads/common

Index

Type Aliases

LocalizationMap

LocalizationMap: Partial<Record<LocaleString, string | null>>

RESTErrorData

RESTErrorData: RESTErrorGroupWrapper | RESTErrorFieldInformation | {} | string

Variables

constPermissionFlagsBits

PermissionFlagsBits: { AddReactions: bigint; Administrator: bigint; AttachFiles: bigint; BanMembers: bigint; ChangeNickname: bigint; Connect: bigint; CreateInstantInvite: bigint; CreatePrivateThreads: bigint; CreatePublicThreads: bigint; DeafenMembers: bigint; EmbedLinks: bigint; KickMembers: bigint; ManageChannels: bigint; ManageEmojisAndStickers: bigint; ManageEvents: bigint; ManageGuild: bigint; ManageGuildExpressions: bigint; ManageMessages: bigint; ManageNicknames: bigint; ManageRoles: bigint; ManageThreads: bigint; ManageWebhooks: bigint; MentionEveryone: bigint; ModerateMembers: bigint; MoveMembers: bigint; MuteMembers: bigint; PrioritySpeaker: bigint; ReadMessageHistory: bigint; RequestToSpeak: bigint; SendMessages: bigint; SendMessagesInThreads: bigint; SendTTSMessages: bigint; Speak: bigint; Stream: bigint; UseApplicationCommands: bigint; UseEmbeddedActivities: bigint; UseExternalEmojis: bigint; UseExternalSounds: bigint; UseExternalStickers: bigint; UseSoundboard: bigint; UseVAD: bigint; ViewAuditLog: bigint; ViewChannel: bigint; ViewCreatorMonetizationAnalytics: bigint; ViewGuildInsights: bigint } = ...

These flags are exported as BigInts and NOT numbers. Wrapping them in Number() may cause issues, try to use BigInts as much as possible or modules that can replicate them in some way


Type declaration

  • AddReactions: bigint
  • Administrator: bigint
  • AttachFiles: bigint
  • BanMembers: bigint
  • ChangeNickname: bigint
  • Connect: bigint
  • CreateInstantInvite: bigint
  • CreatePrivateThreads: bigint
  • CreatePublicThreads: bigint
  • DeafenMembers: bigint
  • EmbedLinks: bigint
  • KickMembers: bigint
  • ManageChannels: bigint
  • ManageEmojisAndStickers: bigint
    @deprecated

    This is the old name for PermissionFlagsBits#ManageGuildExpressions

  • ManageEvents: bigint
  • ManageGuild: bigint
  • ManageGuildExpressions: bigint
  • ManageMessages: bigint
  • ManageNicknames: bigint
  • ManageRoles: bigint
  • ManageThreads: bigint
  • ManageWebhooks: bigint
  • MentionEveryone: bigint
  • ModerateMembers: bigint
  • MoveMembers: bigint
  • MuteMembers: bigint
  • PrioritySpeaker: bigint
  • ReadMessageHistory: bigint
  • RequestToSpeak: bigint
  • SendMessages: bigint
  • SendMessagesInThreads: bigint
  • SendTTSMessages: bigint
  • Speak: bigint
  • Stream: bigint
  • UseApplicationCommands: bigint
  • UseEmbeddedActivities: bigint
  • UseExternalEmojis: bigint
  • UseExternalSounds: bigint
    @unstable

    This permission flag is currently not documented by Discord but has a known value which we will try to keep up to date.

  • UseExternalStickers: bigint
  • UseSoundboard: bigint
  • UseVAD: bigint
  • ViewAuditLog: bigint
  • ViewChannel: bigint
  • ViewCreatorMonetizationAnalytics: bigint
  • ViewGuildInsights: bigint