DiscordWebhook
public struct DiscordWebhook
Represents a webhook.
-
The avatar of this webhook.
Declaration
Swift
public let avatar: String?
-
The snowflake for the channel this webhook is for.
Declaration
Swift
public let channelId: ChannelID
-
The snowflake for of the guild this webhook is for, if for a guild.
Declaration
Swift
public let guildId: GuildID?
-
The id of this webhook.
Declaration
Swift
public let id: WebhookID
-
The default name of this webhook.
Declaration
Swift
public let name: String?
-
The secure token for this webhook.
Declaration
Swift
public let token: String
-
The user this webhook was created by (not present when the webhook was gotten by its token).
Declaration
Swift
public let user: DiscordUser?