From ba1200059cecc9c7a563f7dae8e29e47f1d2b1eb Mon Sep 17 00:00:00 2001 From: diamondburned Date: Sun, 22 Nov 2020 15:14:14 -0800 Subject: [PATCH] Discord: Fixed regression of unmarshaling Permission in Guild --- discord/guild.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/guild.go b/discord/guild.go index ceb3edc..f706c31 100644 --- a/discord/guild.go +++ b/discord/guild.go @@ -45,7 +45,7 @@ type Guild struct { // Permissions are the total permissions for the user in the guild // (excludes overrides). - Permissions Permissions `json:"permissions,omitempty"` + Permissions Permissions `json:"permissions,string,omitempty"` // VoiceRegion is the voice region id for the guild. VoiceRegion string `json:"region"` @@ -279,7 +279,7 @@ type Role struct { Name string `json:"name"` // Permissions is the permission bit set. - Permissions Permissions `json:"permissions"` + Permissions Permissions `json:"permissions,string"` // Position is the position of this role. Position int `json:"position"`