struct Cryscord::Channel

Defined in:

channel.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Snowflake, type : Channel::Type, guild_id : Snowflake | Nil = nil, position : UInt32 | Nil = nil, name : String | Nil = "", topic : String | Nil = "", nsfw : Bool = false, last_message_id : Snowflake | Nil = nil, bitrate : UInt32 | Nil = nil, user_limit : UInt32 | Nil = nil, rate_limit_per_user : UInt32 | Nil = nil, recipients : UserArray = UserArray.new, icon : String | Nil = "", owner_id : Snowflake | Nil = nil, application_id : Snowflake | Nil = nil, managed : Bool = false, parent_id : Snowflake | Nil = nil, last_pin_timestamp : String | Nil = "") #

[View source]

Instance Method Detail

def application_id : Snowflake | Nil #

def bitrate : UInt32 | Nil #

def clone #

[View source]
def copy_with(id _id = @id, type _type = @type, guild_id _guild_id = @guild_id, position _position = @position, name _name = @name, topic _topic = @topic, nsfw _nsfw = @nsfw, last_message_id _last_message_id = @last_message_id, bitrate _bitrate = @bitrate, user_limit _user_limit = @user_limit, rate_limit_per_user _rate_limit_per_user = @rate_limit_per_user, recipients _recipients = @recipients, icon _icon = @icon, owner_id _owner_id = @owner_id, application_id _application_id = @application_id, managed _managed = @managed, parent_id _parent_id = @parent_id, last_pin_timestamp _last_pin_timestamp = @last_pin_timestamp) #

[View source]
def guild_id : Snowflake | Nil #

def icon : String | Nil #

def id : Snowflake #

def last_message_id : Snowflake | Nil #

def last_pin_timestamp #

[View source]
def managed : Bool #

def name : String | Nil #

def nsfw : Bool #

def owner_id : Snowflake | Nil #

def parent_id : Snowflake | Nil #

def position : UInt32 | Nil #

def rate_limit_per_user : UInt32 | Nil #

def recipients : UserArray #

def topic : String | Nil #

def type : Channel::Type #

def user_limit : UInt32 | Nil #