Procházet zdrojové kódy

Add ApplicationID to Webhook

Qais Patankar před 4 roky
rodič
revize
0dbc0d17a7
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      structs.go

+ 3 - 0
structs.go

@@ -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