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.
158 159 160 |
# File 'lib/discorb/guild_template.rb', line 158 def color @color end |
#name -> String (readonly)
Returns The name of the role.
154 155 156 |
# File 'lib/discorb/guild_template.rb', line 154 def name @name end |
#permissions -> Discorb::Permission (readonly)
Returns The permissions of the role.
156 157 158 |
# File 'lib/discorb/guild_template.rb', line 156 def @permissions end |