struct Discord::Gateway::GuildCreatePayload

Overview

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

Defined in:

discordcr/mappings/gateway.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def afk_channel_id : ::Union(Snowflake, Nil) #

def afk_channel_id=(_afk_channel_id : ::Union(Snowflake, Nil)) #

def afk_timeout : ::Union(Int32, Nil) #

def afk_timeout=(_afk_timeout : ::Union(Int32, Nil)) #

def channels : Array(Channel) #

def channels=(_channels : Array(Channel)) #

def default_message_notifications : UInt8 #

def default_message_notifications=(_default_message_notifications : UInt8) #

def emoji : Array(Emoji) #

def emoji=(_emoji : Array(Emoji)) #

def emojis #

[View source]
def explicit_content_filter : UInt8 #

def explicit_content_filter=(_explicit_content_filter : UInt8) #

def features : Array(String) #

def features=(_features : Array(String)) #

def icon : ::Union(String, Nil) #

def icon=(_icon : ::Union(String, Nil)) #

def id : Snowflake #

def id=(_id : Snowflake) #

def large : Bool #

def large=(_large : Bool) #

def member_count : Int32 #

def member_count=(_member_count : Int32) #

def members : Array(GuildMember) #

def members=(_members : Array(GuildMember)) #

def name : String #

def name=(_name : String) #

def owner_id : Snowflake #

def owner_id=(_owner_id : Snowflake) #

def presences : Array(Presence) #

def presences=(_presences : Array(Presence)) #

def region : String #

def region=(_region : String) #

def roles : Array(Role) #

def roles=(_roles : Array(Role)) #

def splash : ::Union(String, Nil) #

def splash=(_splash : ::Union(String, Nil)) #

def system_channel_id : ::Union(Snowflake, Nil) #

def system_channel_id=(_system_channel_id : ::Union(Snowflake, Nil)) #

def to_json(json : JSON::Builder) #

def unavailable : ::Union(Bool, Nil) #

def unavailable=(_unavailable : ::Union(Bool, Nil)) #

def verification_level : UInt8 #

def verification_level=(_verification_level : UInt8) #

def voice_states : Array(VoiceState) #

def voice_states=(_voice_states : Array(VoiceState)) #

def widget_channel_id : ::Union(Snowflake, Nil) #

def widget_channel_id=(_widget_channel_id : ::Union(Snowflake, Nil)) #