Accessors
Static
allPermissions
- get allPermissions(): bigint
-
Returns bigint
Methods
Static
applyOverwrites
- applyOverwrites(perms, overwrites, id): bigint
-
Parameters
-
perms: number | bigint
-
overwrites: APIOverwrite | APIOverwrite[]
-
id: string
Returns bigint
Static
channelPermissions
- channelPermissions(member, guild, channel): bigint
-
Returns bigint
Static
combine
- combine(...flags): bigint
-
Parameters
-
Rest
...flags: PermissionsFlags[]
Returns bigint
Static
guildPermissions
- guildPermissions(member, guild): bigint
-
Returns bigint
Static
hasPerms
- hasPerms(perms, ...test): boolean
-
Parameters
-
perms: number | bigint
-
Rest
...test: PermissionsFlags[]
Returns boolean
Static
missingPerms
- missingPerms(perms, ...test): bigint
-
Parameters
-
perms: number | bigint
-
Rest
...test: PermissionsFlags[]
Returns bigint
Static
remove
- remove(baseFlags, ...flags): bigint
-
Parameters
-
baseFlags: number | bigint
-
Rest
...flags: PermissionsFlags[]
Returns bigint
Static
timeout
- timeout(perms): bigint
-
Returns bigint
Static
toReadable
- toReadable(perms): ("CREATE_INSTANT_INVITE" | "KICK_MEMBERS" | "BAN_MEMBERS" | "ADMINISTRATOR" | "MANAGE_CHANNELS" | "MANAGE_GUILD" | "ADD_REACTIONS" | "VIEW_AUDIT_LOG" | "PRIORITY_SPEAKER" | "STREAM" | "VIEW_CHANNEL" | "SEND_MESSAGES" | "SEND_TTS_MESSAGES" | "MANAGE_MESSAGES" | "EMBED_LINKS" | "ATTACH_FILES" | "READ_MESSAGE_HISTORY" | "MENTION_EVERYONE" | "USE_EXTERNAL_EMOJIS" | "VIEW_GUILD_INSIGHTS" | "CONNECT" | "SPEAK" | "MUTE_MEMBERS" | "DEAFEN_MEMBERS" | "MOVE_MEMBERS" | "USE_VAD" | "CHANGE_NICKNAME" | "MANAGE_NICKNAMES" | "MANAGE_ROLES" | "MANAGE_WEBHOOKS" | "MANAGE_EMOJIS_AND_STICKERS" | "USE_APPLICATION_COMMANDS" | "REQUEST_TO_SPEAK" | "MANAGE_EVENTS" | "MANAGE_THREADS" | "CREATE_PUBLIC_THREADS" | "CREATE_PRIVATE_THREADS" | "USE_EXTERNAL_STICKERS" | "SEND_MESSAGES_IN_THREADS" | "USE_EMBEDDED_ACTIVITIES" | "MODERATE_MEMBERS")[]
-
Returns ("CREATE_INSTANT_INVITE" | "KICK_MEMBERS" | "BAN_MEMBERS" | "ADMINISTRATOR" | "MANAGE_CHANNELS" | "MANAGE_GUILD" | "ADD_REACTIONS" | "VIEW_AUDIT_LOG" | "PRIORITY_SPEAKER" | "STREAM" | "VIEW_CHANNEL" | "SEND_MESSAGES" | "SEND_TTS_MESSAGES" | "MANAGE_MESSAGES" | "EMBED_LINKS" | "ATTACH_FILES" | "READ_MESSAGE_HISTORY" | "MENTION_EVERYONE" | "USE_EXTERNAL_EMOJIS" | "VIEW_GUILD_INSIGHTS" | "CONNECT" | "SPEAK" | "MUTE_MEMBERS" | "DEAFEN_MEMBERS" | "MOVE_MEMBERS" | "USE_VAD" | "CHANGE_NICKNAME" | "MANAGE_NICKNAMES" | "MANAGE_ROLES" | "MANAGE_WEBHOOKS" | "MANAGE_EMOJIS_AND_STICKERS" | "USE_APPLICATION_COMMANDS" | "REQUEST_TO_SPEAK" | "MANAGE_EVENTS" | "MANAGE_THREADS" | "CREATE_PUBLIC_THREADS" | "CREATE_PRIVATE_THREADS" | "USE_EXTERNAL_STICKERS" | "SEND_MESSAGES_IN_THREADS" | "USE_EMBEDDED_ACTIVITIES" | "MODERATE_MEMBERS")[]
Utilities for permission flags.