Interface

APIWebhook

Webhook from GET /channels/{id}/webhooks (includes token) or GET /webhooks/{id} (no token).

Properties

NameTypeDescription
avatarstring | nullWebhook avatar hash.
channel_idSnowflakeChannel the webhook posts to.
guild_idSnowflakeGuild containing the webhook.
idSnowflakeWebhook ID.
namestringWebhook display name.
token?stringWebhook token (present when listing channel webhooks; not returned when fetching by ID without token).
type?WebhookTypeWebhook type (present on audit-log webhook entries and some list responses).
userAPIUserUser who created the webhook.