Skip to content

Commit

Permalink
Fix RateLimitPerUser on ChannelEdit (#1152)
Browse files Browse the repository at this point in the history
* fix ability to turn off slowmode via ChannelEdit

* fix(structs): gofmt

Co-authored-by: Cyrus <50967051+Not-Cyrus@users.noreply.github.com>
  • Loading branch information
FedorLap2006 and VMpc committed Apr 10, 2022
1 parent fb0692b commit cff1705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion structs.go
Expand Up @@ -360,7 +360,7 @@ type ChannelEdit struct {
UserLimit int `json:"user_limit,omitempty"`
PermissionOverwrites []*PermissionOverwrite `json:"permission_overwrites,omitempty"`
ParentID string `json:"parent_id,omitempty"`
RateLimitPerUser int `json:"rate_limit_per_user,omitempty"`
RateLimitPerUser *int `json:"rate_limit_per_user,omitempty"`

// NOTE: threads only

Expand Down

0 comments on commit cff1705

Please sign in to comment.