From 4ffe741f3ebd92fd252117e0a87a7c855337cd7e Mon Sep 17 00:00:00 2001 From: Sebastian Winkler Date: Tue, 1 Oct 2019 20:32:18 +0200 Subject: [PATCH] adds RateLimitPerUser to Channel struct --- structs.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/structs.go b/structs.go index e7192d9..9dc1176 100644 --- a/structs.go +++ b/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