Discord::Guild
Inherits JSON::Serializable / Struct / Value / Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
afk_channel_id
Sourceafk_channel_id=(afk_channel_id : Snowflake | Nil)
Sourceafk_timeout
Sourceafk_timeout=(afk_timeout : Int32 | Nil)
Sourcedefault_message_notifications
Sourcedefault_message_notifications=(default_message_notifications : UInt8)
Sourceembed_channel_id
Sourceembed_channel_id=(embed_channel_id : Snowflake | Nil)
Sourceembed_enabled
Sourceembed_enabled=(embed_enabled : Bool | Nil)
Sourceemoji
Sourceemoji=(emoji : Array(Emoji))
Sourceemojis
Sourceexplicit_content_filter
Sourceexplicit_content_filter=(explicit_content_filter : UInt8)
Sourcefeatures
Sourcefeatures=(features : Array(String))
Sourceicon
Sourceicon=(icon : String | Nil)
Sourceicon_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.
id
Sourceid=(id : Snowflake)
Sourcename
Sourcename=(name : String)
Sourceowner_id
Sourceowner_id=(owner_id : Snowflake)
Sourceregion
Sourceregion=(region : String)
Sourceroles
Sourceroles=(roles : Array(Role))
Sourcesplash
Sourcesplash=(splash : String | Nil)
Sourcesplash_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.
system_channel_id
Sourcesystem_channel_id=(system_channel_id : Snowflake | Nil)
Sourceverification_level
Sourceverification_level=(verification_level : UInt8)
Sourcewidget_channel_id
Sourcewidget_channel_id=(widget_channel_id : Snowflake | Nil)
Sourcewidget_enabled
Sourcewidget_enabled=(widget_enabled : Bool | Nil)
Source