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

#colorDiscorb::Color (readonly)

Returns The color of the role.

Returns:



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

def color
  @color
end

#nameString (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

#permissionsDiscorb::Permission (readonly)

Returns The permissions of the role.

Returns:



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

def permissions
  @permissions
end