import { PermissionFlagsBits } from "https://deno.land/x/discord_api_types@0.37.30/payloads/v9/mod.ts";
https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags
These flags are exported as BigInt
s and NOT numbers. Wrapping them in Number()
may cause issues, try to use BigInts as much as possible or modules that can
replicate them in some way
type
{ CreateInstantInvite; KickMembers; BanMembers; Administrator; ManageChannels; ManageGuild; AddReactions; ViewAuditLog; PrioritySpeaker; Stream; ViewChannel; SendMessages; SendTTSMessages; ManageMessages; EmbedLinks; AttachFiles; ReadMessageHistory; MentionEveryone; UseExternalEmojis; ViewGuildInsights; Connect; Speak; MuteMembers; DeafenMembers; MoveMembers; UseVAD; ChangeNickname; ManageNicknames; ManageRoles; ManageWebhooks; ManageEmojisAndStickers; UseApplicationCommands; RequestToSpeak; ManageEvents; ManageThreads; CreatePublicThreads; CreatePrivateThreads; UseExternalStickers; SendMessagesInThreads; UseEmbeddedActivities; ModerateMembers; }