class Discorb::GuildTemplate::TemplateGuild::Role
Represents a role in guild template.
Attributes
color[R]
@return [Discorb::Color] The color of the role.
name[R]
@return [String] The name of the role.
permissions[R]
@return [Discorb::Permission] The permissions of the role.
Public Class Methods
new(data)
click to toggle source
@!visibility private
# File lib/discorb/guild_template.rb, line 147 def initialize(data) @name = data[:name] @permissions = Permission.new(data[:permissions]) @color = Color.new(data[:color]) @hoist = data[:hoist] @mentionable = data[:mentionable] end