struct

Discord::Guild

Inherits JSON::Serializable / Struct / Value / Object

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
default_message_notifications
Source
default_message_notifications=(default_message_notifications : UInt8)
Source
embed_channel_id
Source
embed_channel_id=(embed_channel_id : Snowflake | Nil)
Source
embed_enabled
Source
embed_enabled=(embed_enabled : Bool | Nil)
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
icon_url(format : CDN::GuildIconFormat = CDN::GuildIconFormat::WebP, size : Int32 = 128)

Produces a CDN URL to this guild's icon in the given format and size, or nil if no icon is set.

Source
id=(id : Snowflake)
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
region
Source
region=(region : String)
Source
roles
Source
roles=(roles : Array(Role))
Source
splash
Source
splash=(splash : String | Nil)
Source
splash_url(format : CDN::GuildSplashFormat = CDN::GuildSplashFormat::WebP, size : Int32 = 128)

Produces a CDN URL to this guild's splash in the given format and size, or nil if no splash is set.

Source
system_channel_id
Source
system_channel_id=(system_channel_id : Snowflake | Nil)
Source
verification_level
Source
verification_level=(verification_level : UInt8)
Source
widget_channel_id
Source
widget_channel_id=(widget_channel_id : Snowflake | Nil)
Source
widget_enabled
Source
widget_enabled=(widget_enabled : Bool | Nil)
Source