struct Discord::Guild
- Discord::Guild
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
discordcr/mappings/guild.crConstructors
Instance Method Summary
- #afk_channel_id : Snowflake | Nil
- #afk_channel_id=(afk_channel_id : Snowflake | Nil)
- #afk_timeout : Int32 | Nil
- #afk_timeout=(afk_timeout : Int32 | Nil)
- #default_message_notifications : UInt8
- #default_message_notifications=(default_message_notifications : UInt8)
- #emoji : Array(Emoji)
- #emoji=(emoji : Array(Emoji))
- #emojis
- #explicit_content_filter : UInt8
- #explicit_content_filter=(explicit_content_filter : UInt8)
- #features : Array(String)
- #features=(features : Array(String))
- #icon : String | Nil
- #icon=(icon : String | Nil)
-
#icon_url(format : CDN::GuildIconFormat = CDN::GuildIconFormat::WebP, size : Int32 = 128)
Produces a CDN URL to this guild's icon in the given
format
andsize
, ornil
if no icon is set. - #id : Snowflake
- #id=(id : Snowflake)
- #name : String
- #name=(name : String)
- #owner_id : Snowflake
- #owner_id=(owner_id : Snowflake)
- #premium_subscription_count : UInt8 | Nil
- #premium_subscription_count=(premium_subscription_count : UInt8 | Nil)
- #premium_tier : UInt8
- #premium_tier=(premium_tier : UInt8)
- #region : String
- #region=(region : String)
- #roles : Array(Role)
- #roles=(roles : Array(Role))
- #splash : String | Nil
- #splash=(splash : String | Nil)
-
#splash_url(format : CDN::GuildSplashFormat = CDN::GuildSplashFormat::WebP, size : Int32 = 128)
Produces a CDN URL to this guild's splash in the given
format
andsize
, ornil
if no splash is set. - #system_channel_id : Snowflake | Nil
- #system_channel_id=(system_channel_id : Snowflake | Nil)
-
#verification_level : UInt8
Removed in v8 property embed_enabled : Bool? property embed_channel_id : Snowflake?
-
#verification_level=(verification_level : UInt8)
Removed in v8 property embed_enabled : Bool? property embed_channel_id : Snowflake?
- #widget_channel_id : Snowflake | Nil
- #widget_channel_id=(widget_channel_id : Snowflake | Nil)
- #widget_enabled : Bool | Nil
- #widget_enabled=(widget_enabled : Bool | Nil)
Constructor Detail
Instance Method Detail
Produces a CDN URL to this guild's icon in the given format
and size
,
or nil
if no icon is set.
def 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.
def verification_level : UInt8
#
Removed in v8 property embed_enabled : Bool? property embed_channel_id : Snowflake?
def verification_level=(verification_level : UInt8)
#
Removed in v8 property embed_enabled : Bool? property embed_channel_id : Snowflake?