struct Discord::Channel

Defined in:

discordcr/mappings/channel.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def application_id : ::Union(Snowflake, Nil) #

def application_id=(_application_id : ::Union(Snowflake, Nil)) #

def bitrate : ::Union(UInt32, Nil) #

def bitrate=(_bitrate : ::Union(UInt32, Nil)) #

def guild_id : ::Union(Snowflake, Nil) #

def guild_id=(_guild_id : ::Union(Snowflake, Nil)) #

def icon : ::Union(Bool, Nil) #

def icon=(_icon : ::Union(Bool, Nil)) #

def id : Snowflake #

def id=(_id : Snowflake) #

def last_message_id : ::Union(Snowflake, Nil) #

def last_message_id=(_last_message_id : ::Union(Snowflake, Nil)) #

def mention #

Produces a string to mention this channel in a message


[View source]
def name : ::Union(String, Nil) #

def name=(_name : ::Union(String, Nil)) #

def nsfw : ::Union(Bool, Nil) #

def nsfw=(_nsfw : ::Union(Bool, Nil)) #

def owner_id : ::Union(Snowflake, Nil) #

def owner_id=(_owner_id : ::Union(Snowflake, Nil)) #

def parent_id : ::Union(Snowflake, Nil) #

def parent_id=(_parent_id : ::Union(Snowflake, Nil)) #

def permission_overwrites : ::Union(Array(Overwrite), Nil) #

def permission_overwrites=(_permission_overwrites : ::Union(Array(Overwrite), Nil)) #

def position : ::Union(Int32, Nil) #

def position=(_position : ::Union(Int32, Nil)) #

def rate_limit_per_user : ::Union(Int32, Nil) #

def rate_limit_per_user=(_rate_limit_per_user : ::Union(Int32, Nil)) #

def recipients : ::Union(Array(User), Nil) #

def recipients=(_recipients : ::Union(Array(User), Nil)) #

def to_json(json : JSON::Builder) #

def topic : ::Union(String, Nil) #

def topic=(_topic : ::Union(String, Nil)) #

def type : ChannelType #

def type=(_type : ChannelType) #

def user_limit : ::Union(UInt32, Nil) #

def user_limit=(_user_limit : ::Union(UInt32, Nil)) #