struct

Discord::Role

Inherits JSON::Serializable / Struct / Value / Object

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

color
Source
colour
Source
colour=(colour : UInt32)
Source
hoist
Source
hoist=(hoist : Bool)
Source
id=(id : Snowflake)
Source
managed
Source
managed=(managed : Bool)
Source
mention

Produces a string to mention this role in a message

Source
mentionable
Source
mentionable=(mentionable : Bool)
Source
name
Source
name=(name : String)
Source
permissions
Source
permissions=(permissions : Permissions)
Source
position
Source
position=(position : Int32)
Source