Interface

APIWebhook

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

Properties

avatar: string | null

Webhook avatar hash.

channel_id: Snowflake

Channel the webhook posts to.

guild_id: Snowflake

Guild containing the webhook.

Webhook ID.

name: string

Webhook display name.

token?: string

Webhook token (present when listing channel webhooks; not returned when fetching by ID without token).

Webhook type (present on audit-log webhook entries and some list responses).

user: APIUser

User who created the webhook.