Interface

APIWebhook

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

Properties

NameTypeDescription
avatar?string | nullWebhook avatar hash.
channel_idSnowflakeChannel the webhook posts to.
guild_idSnowflakeGuild containing the webhook.
idSnowflakeWebhook ID.
namestringWebhook display name.
source_channel?{ id: Snowflake; name: string; }Followed announcement channel, on channel-follower webhooks.
source_guild?{ id: Snowflake; name: string; icon: string | null; }Guild of a followed announcement channel, on channel-follower webhooks.
tokenstringWebhook token (present when listing channel webhooks).
typeWebhookTypeWebhook type (incoming or channel follower).
userAPIUserUser who created the webhook.