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.
196 197 198 |
# File 'lib/discorb/guild_template.rb', line 196 def color @color end |
#name -> String (readonly)
Returns The name of the role.
192 193 194 |
# File 'lib/discorb/guild_template.rb', line 192 def name @name end |
#permissions -> Discorb::Permission (readonly)
Returns The permissions of the role.
194 195 196 |
# File 'lib/discorb/guild_template.rb', line 194 def @permissions end |