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). |
| type? | WebhookType | Webhook type (audit-log / some list responses). |
| user | APIUser | User who created the webhook. |