struct Discord::Role

Defined in:

discordcr/mappings/guild.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(__temp_498 : JSON::PullParser) #

Instance Method Detail

def color #

[View source]
def colour : UInt32 #

def colour=(_colour : UInt32) #

def hoist : Bool #

def hoist=(_hoist : Bool) #

def id : Snowflake #

def id=(_id : Snowflake) #

def managed : Bool #

def managed=(_managed : Bool) #

def mention #

Produces a string to mention this role in a message


[View source]
def mentionable : Bool #

def mentionable=(_mentionable : Bool) #

def name : String #

def name=(_name : String) #

def permissions : Permissions #

def permissions=(_permissions : Permissions) #

def position : Int32 #

def position=(_position : Int32) #

def to_json(json : JSON::Builder) #