struct

Discord::Gateway::GuildCreatePayload

Inherits JSON::Serializable / Struct / Value / Object

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

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

afk_channel_id
Source
afk_channel_id=(afk_channel_id : Snowflake | Nil)
Source
afk_timeout
Source
afk_timeout=(afk_timeout : Int32 | Nil)
Source
channels
Source
channels=(channels : Array(Channel))
Source
default_message_notifications
Source
default_message_notifications=(default_message_notifications : UInt8)
Source
emoji
Source
emoji=(emoji : Array(Emoji))
Source
emojis
Source
explicit_content_filter
Source
explicit_content_filter=(explicit_content_filter : UInt8)
Source
features
Source
features=(features : Array(String))
Source
icon
Source
icon=(icon : String | Nil)
Source
id=(id : Snowflake)
Source
large
Source
large=(large : Bool)
Source
member_count
Source
member_count=(member_count : Int32)
Source
members
Source
members=(members : Array(GuildMember))
Source
name
Source
name=(name : String)
Source
owner_id
Source
owner_id=(owner_id : Snowflake)
Source
premium_subscription_count
Source
premium_subscription_count=(premium_subscription_count : UInt8 | Nil)
Source
premium_tier
Source
premium_tier=(premium_tier : UInt8)
Source
presences
Source
presences=(presences : Array(Presence))
Source
region
Source
region=(region : String)
Source
roles
Source
roles=(roles : Array(Role))
Source
splash
Source
splash=(splash : String | Nil)
Source
stage_instances
Source
stage_instances=(stage_instances : Array(StageInstance))
Source
system_channel_id
Source
system_channel_id=(system_channel_id : Snowflake | Nil)
Source
unavailable
Source
unavailable=(unavailable : Bool | Nil)
Source
verification_level
Source
verification_level=(verification_level : UInt8)
Source
voice_states
Source
voice_states=(voice_states : Array(VoiceState))
Source
widget_channel_id
Source
widget_channel_id=(widget_channel_id : Snowflake | Nil)
Source