Interface
APIWebhook
Webhook from GET /channels/{id}/webhooks (includes token) or GET /webhooks/{id} (no token).
Properties
| Name | Type | Description |
|---|---|---|
| avatar | string | null | Webhook avatar hash. |
| channel_id | Snowflake | Channel the webhook posts to. |
| guild_id | Snowflake | Guild containing the webhook. |
| id | Snowflake | Webhook ID. |
| name | string | Webhook display name. |
| token? | string | Webhook token (present when listing channel webhooks; not returned when fetching by ID without token). |
| type? | WebhookType | Webhook type (present on audit-log webhook entries and some list responses). |
| user | APIUser | User who created the webhook. |