struct Discord::RoleTags

Included Modules

Defined in:

discordcr/mappings/guild.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(bot_id : Snowflake?, integration_id : Snowflake?, premium_subscriber : Bool?) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.from_json(pull : JSON::PullParser) #

This struct requires a special parsing routine because Discord decided to send dumb values for it. This can be removed whenever premium_subscriber doesnt return only null.


[View source]

Instance Method Detail

def bot_id : Snowflake? #

[View source]
def bot_id=(bot_id : Snowflake?) #

[View source]
def integration_id : Snowflake? #

[View source]
def integration_id=(integration_id : Snowflake?) #

[View source]
def premium_subscriber : Bool #

[View source]
def premium_subscriber=(premium_subscriber : Bool) #

[View source]