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?, #hash

Instance Attribute Details

#color -> Discorb::Color (readonly)

Returns The color of the role.

Returns:



147
148
149
# File 'lib/discorb/guild_template.rb', line 147

def color
  @color
end

#name -> String (readonly)

Returns The name of the role.

Returns:

  • (String)

    The name of the role.



143
144
145
# File 'lib/discorb/guild_template.rb', line 143

def name
  @name
end

#permissions -> Discorb::Permission (readonly)

Returns The permissions of the role.

Returns:



145
146
147
# File 'lib/discorb/guild_template.rb', line 145

def permissions
  @permissions
end