瀏覽代碼

adds RateLimitPerUser to Channel struct

Sebastian Winkler 5 年之前
父節點
當前提交
4ffe741f3e
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      structs.go

+ 4 - 0
structs.go

@@ -257,6 +257,10 @@ type Channel struct {
 
 	// The ID of the parent channel, if the channel is under a category
 	ParentID string `json:"parent_id"`
+
+	// Amount of seconds a user has to wait before sending another message (0-21600)
+	// bots, as well as users with the permission manage_messages or manage_channel, are unaffected
+	RateLimitPerUser int `json:"rate_limit_per_user"`
 }
 
 // Mention returns a string which mentions the channel