struct Discord::Guild

Included Modules

Defined in:

discordcr/mappings/guild.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def afk_channel_id : Snowflake? #

[View source]
def afk_channel_id=(afk_channel_id : Snowflake?) #

[View source]
def afk_timeout : Int32? #

[View source]
def afk_timeout=(afk_timeout : Int32?) #

[View source]
def default_message_notifications : UInt8 #

[View source]
def default_message_notifications=(default_message_notifications : UInt8) #

[View source]
def emoji : Array(Emoji) #

[View source]
def emoji=(emoji : Array(Emoji)) #

[View source]
def emojis #

[View source]
def explicit_content_filter : UInt8 #

[View source]
def explicit_content_filter=(explicit_content_filter : UInt8) #

[View source]
def features : Array(String) #

[View source]
def features=(features : Array(String)) #

[View source]
def icon : String? #

[View source]
def icon=(icon : String?) #

[View source]
def 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.


[View source]
def id : Snowflake #

[View source]
def id=(id : Snowflake) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def owner_id : Snowflake #

[View source]
def owner_id=(owner_id : Snowflake) #

[View source]
def premium_subscription_count : UInt8? #

[View source]
def premium_subscription_count=(premium_subscription_count : UInt8?) #

[View source]
def premium_tier : UInt8 #

[View source]
def premium_tier=(premium_tier : UInt8) #

[View source]
def region : String #

[View source]
def region=(region : String) #

[View source]
def roles : Array(Role) #

[View source]
def roles=(roles : Array(Role)) #

[View source]
def splash : String? #

[View source]
def splash=(splash : String?) #

[View source]
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.


[View source]
def system_channel_id : Snowflake? #

[View source]
def system_channel_id=(system_channel_id : Snowflake?) #

[View source]
def verification_level : UInt8 #

Removed in v8 property embed_enabled : Bool? property embed_channel_id : Snowflake?


[View source]
def verification_level=(verification_level : UInt8) #

Removed in v8 property embed_enabled : Bool? property embed_channel_id : Snowflake?


[View source]
def widget_channel_id : Snowflake? #

[View source]
def widget_channel_id=(widget_channel_id : Snowflake?) #

[View source]
def widget_enabled : Bool? #

[View source]
def widget_enabled=(widget_enabled : Bool?) #

[View source]