DiscordChannel
public protocol DiscordChannel : DiscordClientHolder
Protocol that declares a type will be a Discord channel.
-
The id of the channel.
Declaration
Swift
var id: ChannelID
-
guild
Extension methodDeclaration
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 methodDeletes this channel.
Declaration
Swift
public func delete(reason: String? = nil)
-
modifyChannel(options:reason:)
Extension methodModifies this channel with
options
.Declaration
Swift
public func modifyChannel(options: [DiscordEndpoint.Options.ModifyChannel], reason: String? = nil)
Parameters
options
An array of
DiscordEndpointOptions.ModifyChannel