Add ApplicationID to Webhook

This commit is contained in:
Qais Patankar 2020-11-15 19:40:37 +00:00
parent 92c52f3db1
commit 0dbc0d17a7

View file

@ -1064,6 +1064,9 @@ type Webhook struct {
Name string `json:"name"` Name string `json:"name"`
Avatar string `json:"avatar"` Avatar string `json:"avatar"`
Token string `json:"token"` Token string `json:"token"`
// ApplicationID is the bot/OAuth2 application that created this webhook
ApplicationID string `json:"application_id,omitempty"`
} }
// WebhookType is the type of Webhook (see WebhookType* consts) in the Webhook struct // WebhookType is the type of Webhook (see WebhookType* consts) in the Webhook struct