// Loaded from https://deno.land/x/discordeno@11.0.0-rc.2/src/types/permissions/bitwise_permission_flags.ts /** https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags */ export enum DiscordBitwisePermissionFlags { /** Allows creation of instant invites */ CREATE_INSTANT_INVITE = 0x00000001, /** Allows kicking members */ KICK_MEMBERS = 0x00000002, /** Allows banning members */ BAN_MEMBERS = 0x00000004, /** Allows all permissions and bypasses channel permission overwrites */ ADMINISTRATOR = 0x00000008, /** Allows management and editing of channels */ MANAGE_CHANNELS = 0x00000010, /** Allows management and editing of the guild */ MANAGE_GUILD = 0x00000020, /** Allows for the addition of reactions to messages */ ADD_REACTIONS = 0x00000040, /** Allows for viewing of audit logs */ VIEW_AUDIT_LOG = 0x00000080, /** Allows for using priority speaker in a voice channel */ PRIORITY_SPEAKER = 0x00000100, /** Allows the user to go live */ STREAM = 0x00000200, /** Allows guild members to view a channel, which includes reading messages in text channels */ VIEW_CHANNEL = 0x00000400, /** Allows for sending messages in a channel */ SEND_MESSAGES = 0x00000800, /** Allows for sending of /tts messages */ SEND_TTS_MESSAGES = 0x00001000, /** Allows for deletion of other users messages */ MANAGE_MESSAGES = 0x00002000, /** Links sent by users with this permission will be auto-embedded */ EMBED_LINKS = 0x00004000, /** Allows for uploading images and files */ ATTACH_FILES = 0x00008000, /** Allows for reading of message history */ READ_MESSAGE_HISTORY = 0x00010000, /** Allows for using the @everyone tag to notify all users in a channel, and the @here tag to notify all online users in a channel */ MENTION_EVERYONE = 0x00020000, /** Allows the usage of custom emojis from other servers */ USE_EXTERNAL_EMOJIS = 0x00040000, /** Allows for viewing guild insights */ VIEW_GUILD_INSIGHTS = 0x00080000, /** Allows for joining of a voice channel */ CONNECT = 0x00100000, /** Allows for speaking in a voice channel */ SPEAK = 0x00200000, /** Allows for muting members in a voice channel */ MUTE_MEMBERS = 0x00400000, /** Allows for deafening of members in a voice channel */ DEAFEN_MEMBERS = 0x00800000, /** Allows for moving of members between voice channels */ MOVE_MEMBERS = 0x01000000, /** Allows for using voice-activity-detection in a voice channel */ USE_VAD = 0x02000000, /** Allows for modification of own nickname */ CHANGE_NICKNAME = 0x04000000, /** Allows for modification of other users nicknames */ MANAGE_NICKNAMES = 0x08000000, /** Allows management and editing of roles */ MANAGE_ROLES = 0x10000000, /** Allows management and editing of webhooks */ MANAGE_WEBHOOKS = 0x20000000, /** Allows management and editing of emojis */ MANAGE_EMOJIS = 0x40000000, /** Allows members to use slash commands in text channels */ USE_SLASH_COMMANDS = 0x80000000, /** Allows for requesting to speak in stage channels. */ REQUEST_TO_SPEAK = 0x100000001, /** Allows for deleting and archiving threads, and viewing all private threads */ MANAGE_THREADS = 0x0400000000, /** Allows for creating and participating in threads */ USE_PUBLIC_THREADS = 0x0800000000, /** Allows for creating and participating in private threads */ USE_PRIVATE_THREADS = 0x1000000000, } export type BitwisePermissions = DiscordBitwisePermissionFlags; export const BitwisePermissions = DiscordBitwisePermissionFlags;