Channel

public protocol Channel

Generic Channel structure

  • Parent class

    Declaration

    Swift

    var sword: Sword?
  • id

    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 method

    Deletes the current channel, whether it be a DMChannel or GuildChannel

    Declaration

    Swift

    func delete(then completion: ((Channel?, RequestError?) -> ())? = nil)