Skip to content

Commit

Permalink
adds rate_limit_per_user to ChannelEdit (bwmarrin#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak authored and iopred committed Sep 20, 2018
1 parent 8dc444f commit 6d2c944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (c *Channel) Mention() string {
return fmt.Sprintf("<#%s>", c.ID)
}

// A ChannelEdit holds Channel Feild data for a channel edit.
// A ChannelEdit holds Channel Field data for a channel edit.
type ChannelEdit struct {
Name string `json:"name,omitempty"`
Topic string `json:"topic,omitempty"`
Expand All @@ -261,6 +261,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"`
}

// A PermissionOverwrite holds permission overwrite data for a Channel
Expand Down

0 comments on commit 6d2c944

Please sign in to comment.