Variable PermissionFlagsBitsConst

PermissionFlagsBits: {
    AddReactions: bigint;
    Administrator: bigint;
    AttachFiles: bigint;
    BanMembers: bigint;
    ChangeNickname: bigint;
    Connect: bigint;
    CreateEvents: bigint;
    CreateGuildExpressions: 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;
    SendPolls: bigint;
    SendTTSMessages: bigint;
    SendVoiceMessages: bigint;
    Speak: bigint;
    Stream: bigint;
    UseApplicationCommands: bigint;
    UseEmbeddedActivities: bigint;
    UseExternalApps: bigint;
    UseExternalEmojis: bigint;
    UseExternalSounds: bigint;
    UseExternalStickers: bigint;
    UseSoundboard: bigint;
    UseVAD: bigint;
    ViewAuditLog: bigint;
    ViewChannel: bigint;
    ViewCreatorMonetizationAnalytics: bigint;
    ViewGuildInsights: bigint;
}

https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags

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

  • Readonly AddReactions: bigint

    Allows for the addition of reactions to messages

    Applies to channel types: Text, Voice, Stage

  • Readonly Administrator: bigint

    Allows all permissions and bypasses channel permission overwrites

  • Readonly AttachFiles: bigint

    Allows for uploading images and files

    Applies to channel types: Text, Voice, Stage

  • Readonly BanMembers: bigint

    Allows banning members

  • Readonly ChangeNickname: bigint

    Allows for modification of own nickname

  • Readonly Connect: bigint

    Allows for joining of a voice channel

    Applies to channel types: Voice, Stage

  • Readonly CreateEvents: bigint

    Allows for creating scheduled events, and editing and deleting those created by the current user

    Applies to channel types: Voice, Stage

  • Readonly CreateGuildExpressions: bigint

    Allows for creating emojis, stickers, and soundboard sounds, and editing and deleting those created by the current user

  • Readonly CreateInstantInvite: bigint

    Allows creation of instant invites

    Applies to channel types: Text, Voice, Stage

  • Readonly CreatePrivateThreads: bigint

    Allows for creating private threads

    Applies to channel types: Text

  • Readonly CreatePublicThreads: bigint

    Allows for creating public and announcement threads

    Applies to channel types: Text

  • Readonly DeafenMembers: bigint

    Allows for deafening of members in a voice channel

    Applies to channel types: Voice

  • Readonly EmbedLinks: bigint

    Links sent by users with this permission will be auto-embedded

    Applies to channel types: Text, Voice, Stage

  • Readonly KickMembers: bigint

    Allows kicking members

  • Readonly ManageChannels: bigint

    Allows management and editing of channels

    Applies to channel types: Text, Voice, Stage

  • Readonly ManageEmojisAndStickers: bigint

    Allows management and editing of emojis, stickers, and soundboard sounds

    Deprecated

    This is the old name for {@apilink PermissionFlagsBits#ManageGuildExpressions}

  • Readonly ManageEvents: bigint

    Allows for editing and deleting scheduled events created by all users

    Applies to channel types: Voice, Stage

  • Readonly ManageGuild: bigint

    Allows management and editing of the guild

  • Readonly ManageGuildExpressions: bigint

    Allows for editing and deleting emojis, stickers, and soundboard sounds created by all users

  • Readonly ManageMessages: bigint

    Allows for deletion of other users messages

    Applies to channel types: Text, Voice, Stage

  • Readonly ManageNicknames: bigint

    Allows for modification of other users nicknames

  • Readonly ManageRoles: bigint

    Allows management and editing of roles

    Applies to channel types: Text, Voice, Stage

  • Readonly ManageThreads: bigint

    Allows for deleting and archiving threads, and viewing all private threads

    Applies to channel types: Text

  • Readonly ManageWebhooks: bigint

    Allows management and editing of webhooks

    Applies to channel types: Text, Voice, Stage

  • Readonly MentionEveryone: bigint

    Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel

    Applies to channel types: Text, Voice, Stage

  • Readonly ModerateMembers: bigint

    Allows for timing out users to prevent them from sending or reacting to messages in chat and threads, and from speaking in voice and stage channels

  • Readonly MoveMembers: bigint

    Allows for moving of members between voice channels

    Applies to channel types: Voice, Stage

  • Readonly MuteMembers: bigint

    Allows for muting members in a voice channel

    Applies to channel types: Voice, Stage

  • Readonly PrioritySpeaker: bigint

    Allows for using priority speaker in a voice channel

    Applies to channel types: Voice

  • Readonly ReadMessageHistory: bigint

    Allows for reading of message history

    Applies to channel types: Text, Voice, Stage

  • Readonly RequestToSpeak: bigint

    Allows for requesting to speak in stage channels

    Applies to channel types: Stage

  • Readonly SendMessages: bigint

    Allows for sending messages in a channel and creating threads in a forum (does not allow sending messages in threads)

    Applies to channel types: Text, Voice, Stage

  • Readonly SendMessagesInThreads: bigint

    Allows for sending messages in threads

    Applies to channel types: Text

  • Readonly SendPolls: bigint

    Allows sending polls

    Applies to channel types: Text, Voice, Stage

  • Readonly SendTTSMessages: bigint

    Allows for sending of /tts messages

    Applies to channel types: Text, Voice, Stage

  • Readonly SendVoiceMessages: bigint

    Allows sending voice messages

    Applies to channel types: Text, Voice, Stage

  • Readonly Speak: bigint

    Allows for speaking in a voice channel

    Applies to channel types: Voice

  • Readonly Stream: bigint

    Allows the user to go live

    Applies to channel types: Voice, Stage

  • Readonly UseApplicationCommands: bigint

    Allows members to use application commands, including slash commands and context menu commands

    Applies to channel types: Text, Voice, Stage

  • Readonly UseEmbeddedActivities: bigint

    Allows for using Activities (applications with the {@apilink ApplicationFlags.Embedded} flag) in a voice channel

    Applies to channel types: Voice

  • Readonly UseExternalApps: bigint

    Allows user-installed apps to send public responses. When disabled, users will still be allowed to use their apps but the responses will be ephemeral. This only applies to apps not also installed to the server

    Applies to channel types: Text, Voice, Stage

  • Readonly UseExternalEmojis: bigint

    Allows the usage of custom emojis from other servers

    Applies to channel types: Text, Voice, Stage

  • Readonly UseExternalSounds: bigint

    Allows the usage of custom soundboard sounds from other servers

    Applies to channel types: Voice

  • Readonly UseExternalStickers: bigint

    Allows the usage of custom stickers from other servers

    Applies to channel types: Text, Voice, Stage

  • Readonly UseSoundboard: bigint

    Allows for using soundboard in a voice channel

    Applies to channel types: Voice

  • Readonly UseVAD: bigint

    Allows for using voice-activity-detection in a voice channel

    Applies to channel types: Voice

  • Readonly ViewAuditLog: bigint

    Allows for viewing of audit logs

  • Readonly ViewChannel: bigint

    Allows guild members to view a channel, which includes reading messages in text channels and joining voice channels

    Applies to channel types: Text, Voice, Stage

  • Readonly ViewCreatorMonetizationAnalytics: bigint

    Allows for viewing role subscription insights

  • Readonly ViewGuildInsights: bigint

    Allows for viewing guild insights

Generated using TypeDoc