瀏覽代碼

Add WebhookID member to message property (#607)

* track membercount on memberAdd and leave

* requested changes

* add WebhookID member to message
Soumil07 6 年之前
父節點
當前提交
412fc067e6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      message.go

+ 3 - 0
message.go

@@ -82,6 +82,9 @@ type Message struct {
 
 	// The type of the message.
 	Type MessageType `json:"type"`
+
+	// The webhook ID of the message, if it was generated by a webhook
+	WebhookID string `json:"webhook_id"`
 }
 
 // File stores info about files you e.g. send in messages.