Class: Discorb::GuildTemplate::TemplateGuild::Role

Inherits:
DiscordModel
  • Object
show all
Defined in:
lib/discorb/guild_template.rb

Overview

Represents a role in guild template.

Instance Attribute Summary collapse

Method Summary

Methods inherited from DiscordModel

#==, #eql?, #inspect

Instance Attribute Details

#color -> Discorb::Color (readonly)

Returns The color of the role.

Returns:



158
159
160
# File 'lib/discorb/guild_template.rb', line 158

def color
  @color
end

#name -> String (readonly)

Returns The name of the role.

Returns:

  • (String)

    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.

Returns:



156
157
158
# File 'lib/discorb/guild_template.rb', line 156

def permissions
  @permissions
end