-
Parent class
Declaration
Swift
public internal(set) weak var sword: Sword? -
Channel Category this channel belongs to
Declaration
Swift
public var category: GuildCategory? -
Guild object for this channel
Declaration
Swift
public var guild: Guild? -
ID of the channel
Declaration
Swift
public let id: Snowflake -
Whether or not this channel is NSFW
Declaration
Swift
public internal(set) var isNsfw: Bool -
Last message sent’s ID
Declaration
Swift
public internal(set) var lastMessageId: Snowflake? -
Last Pin’s timestamp
Declaration
Swift
public internal(set) var lastPinTimestamp: Date? -
Name of channel
Declaration
Swift
public internal(set) var name: String? -
Parent Category ID of this channel
Declaration
Swift
public internal(set) var parentId: Snowflake? -
Position of channel
Declaration
Swift
public internal(set) var position: Int? -
Topic of the channel
Declaration
Swift
public internal(set) var topic: String? -
Indicates what type of channel this is (.guildText or .guildVoice)
Declaration
Swift
public var type: ChannelType
-
Creates a webhook for this channel
Options Params
- name: The name of the webhook
avatar: The avatar string to assign this webhook in base64
Declaration
Swift
public func createWebhook( with options: [String: String] = [:], then completion: ((Webhook?, RequestError?) -> ())? = nil ) -
Deletes all reactions from message
Declaration
Swift
public func deleteReactions( from messageId: Snowflake, then completion: ((RequestError?) -> ())? = nil ) -
Gets this channel’s webhooks
Declaration
Swift
public func getWebhooks( then completion: @escaping ([Webhook]?, RequestError?) -> () )
View on GitHub
GuildText Class Reference