1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 09:12:53 +00:00

Discord: Fixed regression of unmarshaling Permission in Guild

This commit is contained in:
diamondburned 2020-11-22 15:14:14 -08:00
parent e755ea4260
commit ba1200059c

View file

@ -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"`