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:



196
197
198
# File 'lib/discorb/guild_template.rb', line 196

def color
  @color
end

#name -> String (readonly)

Returns The name of the role.

Returns:

  • (String)

    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.

Returns:



194
195
196
# File 'lib/discorb/guild_template.rb', line 194

def permissions
  @permissions
end