From 77cff6da6c27b4bb4a4e09d66e787fdae597fec8 Mon Sep 17 00:00:00 2001 From: Marc Date: Fri, 28 May 2021 17:34:34 +0100 Subject: [PATCH] fix library thanks --- dgo.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dgo.patch diff --git a/dgo.patch b/dgo.patch new file mode 100644 index 0000000..a31d4fa --- /dev/null +++ b/dgo.patch @@ -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