Merge pull request #838 from qaisjp/webhook-appid

Add ApplicationID to Webhook
This commit is contained in:
Carson Hoffman 2020-11-15 15:02:07 -05:00 committed by GitHub
commit fb996efa76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1064,6 +1064,9 @@ type Webhook struct {
Name string `json:"name"`
Avatar string `json:"avatar"`
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