fix library thanks

master
Marc 2021-05-28 17:34:34 +01:00
parent 8051000a5a
commit 77cff6da6c
No known key found for this signature in database
GPG Key ID: 0657563F705ACAAE
1 changed files with 18 additions and 0 deletions

18
dgo.patch Normal file
View File

@ -0,0 +1,18 @@
diff -Nurx '.*' discord.go/structs.go discordgo/structs.go
--- discord.go/structs.go 2021-05-28 16:13:27.712814231 +0000
+++ discordgo/structs.go 2021-05-28 16:29:42.482943595 +0000
@@ -310,12 +310,12 @@
Name string `json:"name,omitempty"`
Topic string `json:"topic,omitempty"`
NSFW bool `json:"nsfw,omitempty"`
- Position int `json:"position"`
+ Position int `json:"position,omitempty"`
Bitrate int `json:"bitrate,omitempty"`
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"`
}
// A ChannelFollow holds data returned after following a news channel