Class: Discorb::GuildTemplate::TemplateGuild::Role
- Inherits:
-
DiscordModel
- Object
- DiscordModel
- Discorb::GuildTemplate::TemplateGuild::Role
- Defined in:
- lib/discorb/guild_template.rb
Overview
Represents a role in guild template.
Instance Attribute Summary collapse
-
#color -> Discorb::Color
readonly
The color of the role.
-
#name -> String
readonly
The name of the role.
-
#permissions -> Discorb::Permission
readonly
The permissions of the role.
Method Summary
Methods inherited from DiscordModel
Instance Attribute Details
#color -> Discorb::Color (readonly)
Returns The color of the role.
144 145 146 |
# File 'lib/discorb/guild_template.rb', line 144 def color @color end |
#name -> String (readonly)
Returns The name of the role.
140 141 142 |
# File 'lib/discorb/guild_template.rb', line 140 def name @name end |
#permissions -> Discorb::Permission (readonly)
Returns The permissions of the role.
142 143 144 |
# File 'lib/discorb/guild_template.rb', line 142 def @permissions end |