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 | Nil #

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

[View source]
def afk_timeout : Int32 | Nil #

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

[View source]
def default_message_notifications : UInt8 #

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

[View source]
def embed_channel_id : Snowflake | Nil #

[View source]
def embed_channel_id=(embed_channel_id : Snowflake | Nil) #

[View source]
def embed_enabled : Bool | Nil #

[View source]
def embed_enabled=(embed_enabled : Bool | Nil) #

[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 | Nil #

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

[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 | Nil #

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

[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 | Nil #

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

[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 | Nil #

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

[View source]
def verification_level : UInt8 #

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

[View source]
def widget_channel_id : Snowflake | Nil #

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

[View source]
def widget_enabled : Bool | Nil #

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

[View source]