Merge pull request #698 from Seklfreak/add_rate_limit_per_user_to_channel

Add rate limit per user to Channel struct
This commit is contained in:
bwmarrin 2019-10-02 10:23:21 -05:00 committed by GitHub
commit fbba4460a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,6 +257,10 @@ type Channel struct {
// The ID of the parent channel, if the channel is under a category // The ID of the parent channel, if the channel is under a category
ParentID string `json:"parent_id"` 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 // Mention returns a string which mentions the channel