Deprecated
API and Gateway v6 are deprecated and the types will not receive further updates, please update to v8.
import { PermissionFlagsBits } from "https://deno.land/x/discord_api_types@0.37.44/v6.ts";
https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
These flags are exported as BigInt
s and NOT numbers. For most of them, you can
convert them in a number by wrapping it in Number()
, however be careful as any
further bits added may cause issues if done so. Try to use BigInts as much as possible
or modules that can replicate them in some way.
type
{ CREATE_INSTANT_INVITE: bigint; KICK_MEMBERS: bigint; BAN_MEMBERS: bigint; ADMINISTRATOR: bigint; MANAGE_CHANNELS: bigint; MANAGE_GUILD: bigint; ADD_REACTIONS: bigint; VIEW_AUDIT_LOG: bigint; PRIORITY_SPEAKER: bigint; STREAM: bigint; VIEW_CHANNEL: bigint; SEND_MESSAGES: bigint; SEND_TTS_MESSAGES: bigint; MANAGE_MESSAGES: bigint; EMBED_LINKS: bigint; ATTACH_FILES: bigint; READ_MESSAGE_HISTORY: bigint; MENTION_EVERYONE: bigint; USE_EXTERNAL_EMOJIS: bigint; VIEW_GUILD_INSIGHTS: bigint; CONNECT: bigint; SPEAK: bigint; MUTE_MEMBERS: bigint; DEAFEN_MEMBERS: bigint; MOVE_MEMBERS: bigint; USE_VAD: bigint; CHANGE_NICKNAME: bigint; MANAGE_NICKNAMES: bigint; MANAGE_ROLES: bigint; MANAGE_WEBHOOKS: bigint; MANAGE_EMOJIS: bigint; }