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

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

[View source]
def bitrate : UInt32? #

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

[View source]
def default_auto_archive_duration : AutoArchiveDuration? #

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

[View source]
def guild_id : Snowflake? #

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

[View source]
def icon : String? #

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

[View source]
def id : Snowflake #

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

[View source]
def last_message_id : Snowflake? #

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

[View source]
def last_pin_timestamp : Time? #

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

[View source]
def member : ThreadMember? #

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

[View source]
def member_count : UInt32? #

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

[View source]
def mention #

Produces a string to mention this channel in a message


[View source]
def message_count : UInt32? #

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

[View source]
def name : String? #

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

[View source]
def nsfw : Bool? #

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

[View source]
def owner_id : Snowflake? #

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

[View source]
def parent_id : Snowflake? #

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

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

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

[View source]
def position : Int32? #

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

[View source]
def rate_limit_per_user : Int32? #

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

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

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

[View source]
def rtc_region : String? #

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

[View source]
def thread_metadata : ThreadMetaData? #

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

[View source]
def topic : String? #

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

[View source]
def type : ChannelType #

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

[View source]
def user_limit : UInt32? #

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

[View source]
def video_quality_mode : VideoQualityMode? #

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

[View source]