Class: Discorb::Permission

Inherits:
Flag
  • Object
show all
Defined in:
lib/discorb/permission.rb

Overview

Represents a permission per guild.

Flag fields

Field Value
`1 << 0` `:create_instant_invite`
`1 << 1` `:kick_members`
`1 << 2` `:ban_members`
`1 << 3` `:administrator`
`1 << 4` `:manage_channels`
`1 << 5` `:manage_guild`
`1 << 6` `:add_reactions`
`1 << 7` `:view_audit_log`
`1 << 8` `:priority_speaker`
`1 << 9` `:stream`
`1 << 10` `:view_channel`
`1 << 11` `:send_messages`
`1 << 12` `:send_tts_messages`
`1 << 13` `:manage_messages`
`1 << 14` `:embed_links`
`1 << 15` `:attach_files`
`1 << 16` `:read_message_history`
`1 << 17` `:mention_everyone`
`1 << 18` `:use_external_emojis`
`1 << 19` `:view_guild_insights`
`1 << 20` `:connect`
`1 << 21` `:speak`
`1 << 22` `:mute_members`
`1 << 23` `:deafen_members`
`1 << 24` `:move_members`
`1 << 25` `:use_vad`
`1 << 26` `:change_nickname`
`1 << 27` `:manage_nicknames`
`1 << 28` `:manage_roles`
`1 << 29` `:manage_webhooks`
`1 << 30` `:manage_emojis`
`1 << 31` `:use_slash_commands`
`1 << 32` `:request_to_speak`
`1 << 34` `:manage_threads`
`1 << 35` `:use_public_threads`
`1 << 36` `:use_private_threads`

Instance Attribute Summary

Attributes inherited from Flag

#value, #values

Method Summary

Methods inherited from Flag

#&, #-, #^, from_keys, #initialize, #inspect, max_value, #method_missing, #respond_to_missing?, #to_i, #|, #~

Constructor Details

This class inherits a constructor from Discorb::Flag

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Discorb::Flag