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?
- #afk_channel_id=(afk_channel_id : Snowflake?)
- #afk_timeout : Int32?
- #afk_timeout=(afk_timeout : Int32?)
- #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?
- #icon=(icon : String?)
-
#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?
- #premium_subscription_count=(premium_subscription_count : UInt8?)
- #premium_tier : UInt8
- #premium_tier=(premium_tier : UInt8)
- #region : String
- #region=(region : String)
- #roles : Array(Role)
- #roles=(roles : Array(Role))
- #splash : String?
- #splash=(splash : String?)
-
#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?
- #system_channel_id=(system_channel_id : Snowflake?)
-
#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?
- #widget_channel_id=(widget_channel_id : Snowflake?)
- #widget_enabled : Bool?
- #widget_enabled=(widget_enabled : Bool?)
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?