DiscordChannel

public protocol DiscordChannel : DiscordClientHolder

Protocol that declares a type will be a Discord channel.

  • id

    The id of the channel.

    Declaration

    Swift

    var id: ChannelID
  • guild Extension method

    Declaration

    Swift

    public var guild: DiscordGuild?

    Return Value

    The guild that this channel is associated with. Or nil if this channel has no guild.

  • delete(reason:) Extension method

    Deletes this channel.

    Declaration

    Swift

    public func delete(reason: String? = nil)
  • Modifies this channel with options.

    Declaration

    Swift

    public func modifyChannel(options: [DiscordEndpoint.Options.ModifyChannel], reason: String? = nil)

    Parameters

    options

    An array of DiscordEndpointOptions.ModifyChannel