DiscordWebhook
constructor(id: Snowflake, type: WebhookType, guildId: OptionalSnowflake = OptionalSnowflake.Missing, channelId: Snowflake, user: Optional<DiscordUser> = Optional.Missing(), name: String?, avatar: String?, token: Optional<String> = Optional.Missing(), applicationId: Snowflake?)(source)
Parameters
id
The id of the webhook.
type
The type of the webhook.
guildId
The guild id this webhook is for.
channelId
The channel id this webhook is for.
user
The user this webhook was created by (not present when getting a webhook with its token).
name
The default name of the webhook.
avatar
The default avatar of the webhook.
token
The secure token of this webhook (returned for incoming webhooks).
applicationId
The bot/OAuth2 application that created this webhook.