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. |
| 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. |
| token | string | Webhook token (present when listing channel webhooks). |
| type | WebhookType | Webhook type (incoming or channel follower). |
| user | APIUser | User who created the webhook. |