BitwisePermissionFlag
: string
in package
Tags
Table of Contents
Cases
- ADMINISTRATOR = '0x0000000000000008'
- Allows all permissions and bypasses channel permission overwrites.
- MANAGE_GUILD = '0x0000000000000020'
- Allows management and editing of the guild.
- MANAGE_MESSAGES = '0x0000000000002000'
- Allows for deletion of other users messages. (T,V,S)
- MANAGE_THREADS = '0x0000000400000000'
- Allows for deleting and archiving threads, and viewing all private threads. (T)
Methods
- isGranted() : bool
Cases
ADMINISTRATOR
Allows all permissions and bypasses channel permission overwrites.
MANAGE_GUILD
Allows management and editing of the guild.
MANAGE_MESSAGES
Allows for deletion of other users messages. (T,V,S)
MANAGE_THREADS
Allows for deleting and archiving threads, and viewing all private threads. (T)
Methods
isGranted()
public
static isGranted(BitwisePermissionFlag $flag, string $permissions) : bool
Parameters
- $flag : BitwisePermissionFlag
- $permissions : string