Channel
public protocol Channel
Generic Channel structure
-
Parent class
Declaration
Swift
var sword: Sword?
-
The id of the channel
Declaration
Swift
var id: Snowflake
-
Indicates what type of channel this is
Declaration
Swift
var type: ChannelType
-
delete(then:)
Extension methodDeletes the current channel, whether it be a DMChannel or GuildChannel
Declaration
Swift
func delete(then completion: ((Channel?, RequestError?) -> ())? = nil)