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:



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

def color
  @color
end

#name -> String (readonly)

Returns The name of the role.

Returns:

  • (String)

    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.

Returns:



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

def permissions
  @permissions
end