Rest ...data: PermissionResolvable[]Readonly valueStatic Readonly AddStatic Readonly AdministratorStatic Readonly AttachStatic Readonly BanStatic Readonly ChangeStatic Readonly ConnectStatic Readonly CreateStatic Readonly CreateStatic Readonly CreateStatic Readonly DeafenStatic Readonly EmbedStatic Readonly KickStatic Readonly ManageStatic Readonly ManageStatic Readonly ManageStatic Readonly ManageStatic Readonly ManageStatic Readonly ManageStatic Readonly ManageStatic Readonly ManageStatic Readonly ManageStatic Readonly MentionStatic Readonly ModerateStatic Readonly MoveStatic Readonly MuteStatic Readonly PriorityStatic Readonly ReadStatic Readonly RequestStatic Readonly SendStatic Readonly SendStatic Readonly SendStatic Readonly SpeakStatic Readonly StreamStatic Readonly UseStatic Readonly UseStatic Readonly UseStatic Readonly UseStatic Readonly UseVADStatic Readonly ViewStatic Readonly ViewStatic Readonly ViewStatic rawAll the Discord permissions as a single bit.
Returns a new set of permissions with the provided permissions added on to the current ones
Rest ...perms: PermissionResolvable[]The permissions to add.
The resulting permissions.
Rest ...perms: PermissionResolvable[]The permissions to check for.
True if the current value has all of the given permissions.
Rest ...perms: PermissionResolvable[]The permissions to check for.
True if the current value has any of the given permissions.
Returns a new set of permissions with the provided permissions removed
Rest ...perms: PermissionResolvable[]The permissions to remove.
The resulting permissions.
Static entriesStatic resolveA static method for resolving permissions from strings, numbers and bigints.
Rest ...data: PermissionResolvable[]The data to resolve permissions from.
The resolved bits.
Generated using TypeDoc
A utility class for interacting with Discord server permissions. This is essentially a wrapper around BigInt.
Note: each instance is immutable and can't be changed, add/remove operations etc does not change the current instance but instead returns a new instance with the changes applied