Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PermissionsBitField

Utility class for working with permissions

Hierarchy

  • PermissionsBitField

Index

Constructors

Properties

bitfield: bigint
Flags: { 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; 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; UseExternalStickers: bigint; UseVAD: bigint; ViewAuditLog: bigint; ViewChannel: bigint; ViewGuildInsights: bigint } = PermissionFlagsBits

Object containing all available permissions

Type declaration

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

Bitfield representing the permissions required for moderators of stage channels

defaultBit: bigint = ...

The default bit

Methods

  • Checks whether the bitfield has a bit, or multiple bits

    Parameters

    Returns boolean

  • Removes bits from these

    Parameters

    • Rest ...bits: any[]

    Returns PermissionsBitField

  • toArray(): string[]
  • Gets an Array of PermissionFlagsBits names based on the bits available

    Returns string[]

  • Parameters

    Returns bigint

Generated using TypeDoc version 0.22.16, the 9/16/2022 at 1:09:15 AM