struct Discord::Channel

Included Modules

Defined in:

discordcr/mappings/channel.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def application_id : Snowflake | Nil #

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

[View source]
def bitrate : UInt32 | Nil #

[View source]
def bitrate=(bitrate : UInt32 | Nil) #

[View source]
def default_auto_archive_duration : AutoArchiveDuration | Nil #

[View source]
def default_auto_archive_duration=(default_auto_archive_duration : AutoArchiveDuration | Nil) #

[View source]
def guild_id : Snowflake | Nil #

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

[View source]
def icon : String | Nil #

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

[View source]
def id : Snowflake #

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

[View source]
def last_message_id : Snowflake | Nil #

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

[View source]
def last_pin_timestamp : Time | Nil #

[View source]
def last_pin_timestamp=(last_pin_timestamp : Time | Nil) #

[View source]
def member : ThreadMember | Nil #

[View source]
def member=(member : ThreadMember | Nil) #

[View source]
def member_count : UInt32 | Nil #

[View source]
def member_count=(member_count : UInt32 | Nil) #

[View source]
def mention #

Produces a string to mention this channel in a message


[View source]
def message_count : UInt32 | Nil #

[View source]
def message_count=(message_count : UInt32 | Nil) #

[View source]
def name : String | Nil #

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

[View source]
def nsfw : Bool | Nil #

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

[View source]
def owner_id : Snowflake | Nil #

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

[View source]
def parent_id : Snowflake | Nil #

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

[View source]
def permission_overwrites : Array(Overwrite) | Nil #

[View source]
def permission_overwrites=(permission_overwrites : Array(Overwrite) | Nil) #

[View source]
def position : Int32 | Nil #

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

[View source]
def rate_limit_per_user : Int32 | Nil #

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

[View source]
def recipients : Array(User) | Nil #

[View source]
def recipients=(recipients : Array(User) | Nil) #

[View source]
def rtc_region : VoiceRegion | Nil #

[View source]
def rtc_region=(rtc_region : VoiceRegion | Nil) #

[View source]
def thread_metadata : ThreadMetaData | Nil #

[View source]
def thread_metadata=(thread_metadata : ThreadMetaData | Nil) #

[View source]
def topic : String | Nil #

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

[View source]
def type : ChannelType #

[View source]
def type=(type : ChannelType) #

[View source]
def user_limit : UInt32 | Nil #

[View source]
def user_limit=(user_limit : UInt32 | Nil) #

[View source]
def video_quality_mode : VideoQualityMode | Nil #

[View source]
def video_quality_mode=(video_quality_mode : VideoQualityMode | Nil) #

[View source]