struct Discord::Gateway::GuildCreatePayload

Overview

This one is special from simply Guild since it also has fields for members and presences.

Included Modules

Defined in:

discordcr/mappings/gateway.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def afk_channel_id : Snowflake | Nil #

[View source]
def afk_channel_id=(afk_channel_id : Snowflake | Nil) #

[View source]
def afk_timeout : Int32 | Nil #

[View source]
def afk_timeout=(afk_timeout : Int32 | Nil) #

[View source]
def channels : Array(Channel) #

[View source]
def channels=(channels : Array(Channel)) #

[View source]
def default_message_notifications : UInt8 #

[View source]
def default_message_notifications=(default_message_notifications : UInt8) #

[View source]
def emoji : Array(Emoji) #

[View source]
def emoji=(emoji : Array(Emoji)) #

[View source]
def emojis #

[View source]
def explicit_content_filter : UInt8 #

[View source]
def explicit_content_filter=(explicit_content_filter : UInt8) #

[View source]
def features : Array(String) #

[View source]
def features=(features : Array(String)) #

[View source]
def icon : String | Nil #

[View source]
def icon=(icon : String | Nil) #

[View source]
def id : Snowflake #

[View source]
def id=(id : Snowflake) #

[View source]
def large : Bool #

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

[View source]
def member_count : Int32 #

[View source]
def member_count=(member_count : Int32) #

[View source]
def members : Array(GuildMember) #

[View source]
def members=(members : Array(GuildMember)) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def owner_id : Snowflake #

[View source]
def owner_id=(owner_id : Snowflake) #

[View source]
def premium_subscription_count : UInt8 | Nil #

[View source]
def premium_subscription_count=(premium_subscription_count : UInt8 | Nil) #

[View source]
def premium_tier : UInt8 #

[View source]
def premium_tier=(premium_tier : UInt8) #

[View source]
def presences : Array(Presence) #

[View source]
def presences=(presences : Array(Presence)) #

[View source]
def region : String #

[View source]
def region=(region : String) #

[View source]
def roles : Array(Role) #

[View source]
def roles=(roles : Array(Role)) #

[View source]
def splash : String | Nil #

[View source]
def splash=(splash : String | Nil) #

[View source]
def system_channel_id : Snowflake | Nil #

[View source]
def system_channel_id=(system_channel_id : Snowflake | Nil) #

[View source]
def unavailable : Bool | Nil #

[View source]
def unavailable=(unavailable : Bool | Nil) #

[View source]
def verification_level : UInt8 #

[View source]
def verification_level=(verification_level : UInt8) #

[View source]
def voice_states : Array(VoiceState) #

[View source]
def voice_states=(voice_states : Array(VoiceState)) #

[View source]
def widget_channel_id : Snowflake | Nil #

[View source]
def widget_channel_id=(widget_channel_id : Snowflake | Nil) #

[View source]