Methods

  • get - Get a user's base permissions

Resource

{
    "bitmask": "int32",
    "permissions": [
        "string"
    ],
    "roles": [
        "string"
    ],
    "success": "boolean",
    "userID": "string"
}

Properties

Name Type Description Additional
bitmask int32

Bitwise OR of the everyone role and all assigned roles.

permissions[] array of string

Possible values are:

  • VIEW_CHANNEL
  • SEND_MESSAGES
  • EMBED_LINKS
  • ATTACH_FILES
  • READ_HISTORY
  • USE_REACTIONS
  • MUTE_OTHERS
  • DEAF_OTHERS
  • MANAGE_CHANNELS
  • MANAGE_ROLES
  • MANAGE_PERMISSIONS
  • KICK_MEMBERS
  • BAN_MEMBERS
  • PIN_MESSAGES
  • MANAGE_MESSAGES
  • MANAGE_EMOJIS
  • CONNECT
  • SPEAK
  • PRIORITY_SPEAKER
  • MOVE_MEMBERS
  • ADMINISTRATOR
  • MODERATOR
  • VIEW_AUDIT_LOG
  • MANAGE_SERVER
roles[] array of string
success boolean

Possible values are:

  • %!s(bool=true)
userID string