struct Discord::RoleTags
- Discord::RoleTags
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
discordcr/mappings/guild.crConstructors
- .new(bot_id : Snowflake?, integration_id : Snowflake?, premium_subscriber : Bool?)
- .new(pull : JSON::PullParser)
Class Method Summary
-
.from_json(pull : JSON::PullParser)
This struct requires a special parsing routine because Discord decided to send dumb values for it.
Instance Method Summary
- #bot_id : Snowflake?
- #bot_id=(bot_id : Snowflake?)
- #integration_id : Snowflake?
- #integration_id=(integration_id : Snowflake?)
- #premium_subscriber : Bool
- #premium_subscriber=(premium_subscriber : Bool)
Constructor Detail
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.