Add missing fields in GuildChannelCreateData (#782)
According to https://discord.com/developers/docs/resources/guild#create-guild-channel, the endpoint also accepts the following fields: - rate_limit_per_user: integer - position: integer
This commit is contained in:
parent
1d8aef5e9c
commit
a853557f4d
1 changed files with 2 additions and 0 deletions
|
@ -923,6 +923,8 @@ type GuildChannelCreateData struct {
|
|||
Topic string `json:"topic,omitempty"`
|
||||
Bitrate int `json:"bitrate,omitempty"`
|
||||
UserLimit int `json:"user_limit,omitempty"`
|
||||
RateLimitPerUser int `json:"rate_limit_per_user,omitempty"`
|
||||
Position int `json:"position,omitempty"`
|
||||
PermissionOverwrites []*PermissionOverwrite `json:"permission_overwrites,omitempty"`
|
||||
ParentID string `json:"parent_id,omitempty"`
|
||||
NSFW bool `json:"nsfw,omitempty"`
|
||||
|
|
Loading…
Reference in a new issue