Permission

public enum Permission: Int

Permission enum to prevent wrong permission checks

  • Allows creation of instant invites

    Declaration

    Swift

    case createInstantInvite = 0x1
  • Allows kicking members

    Declaration

    Swift

    case kickMembers = 0x2
  • Allows banning members

    Declaration

    Swift

    case banMembers = 0x4
  • Allows all permissions and bypasses channel permission overwrites

    Declaration

    Swift

    case administrator = 0x8
  • Allows management and editing of channels

    Declaration

    Swift

    case manageChannels = 0x10
  • Allows management and editing of the guild

    Declaration

    Swift

    case manageGuild = 0x20
  • Allows for the addition of reactions to messages

    Declaration

    Swift

    case addReactions = 0x40
  • Allows for the user to view a server’s audit log

    Declaration

    Swift

    case viewAuditLog = 0x80
  • Allows viewing of a channel. The channel will not appear for users without this permission

    Declaration

    Swift

    case viewChannel = 0x400
  • Allows for sending messages in a channel.

    Declaration

    Swift

    case sendMessages = 0x800
  • Allows for sending of /tts messages

    Declaration

    Swift

    case sendTTSMessages = 0x1000
  • Allows for deletion of other users messages

    Declaration

    Swift

    case manageMessages = 0x2000
  • Links sent by this user will be auto-embedded

    Declaration

    Swift

    case embedLinks = 0x4000
  • Allows for uploading images and files

    Declaration

    Swift

    case attachFiles = 0x8000
  • Allows for reading of message history

    Declaration

    Swift

    case readMessageHistory = 0x10000
  • 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

    Declaration

    Swift

    case mentionEveryone = 0x20000
  • Allows the usage of custom emojis from other servers

    Declaration

    Swift

    case useExternalEmojis = 0x40000
  • Allows for joining of a voice channel

    Declaration

    Swift

    case connect = 0x100000
  • Allows for speaking in a voice channel

    Declaration

    Swift

    case speak = 0x200000
  • Allows for muting members in a voice channel

    Declaration

    Swift

    case muteMembers = 0x400000
  • Allows for deafening of members in a voice channel

    Declaration

    Swift

    case deafenMembers = 0x800000
  • llows for moving of members between voice channels

    Declaration

    Swift

    case moveMembers = 0x1000000
  • Allows for using voice-activity-detection in a voice channel

    Declaration

    Swift

    case useVad = 0x2000000
  • Allows for modification of own nickname

    Declaration

    Swift

    case changeNickname = 0x4000000
  • Allows for modification of other users nicknames

    Declaration

    Swift

    case manageNicknames = 0x8000000
  • Allows management and editing of roles

    Declaration

    Swift

    case manageRoles = 0x10000000
  • Allows management and editing of webhooks

    Declaration

    Swift

    case manageWebhooks = 0x20000000
  • Allows management and editing of emojis

    Declaration

    Swift

    case manageEmojis = 0x40000000