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:
parent
e755ea4260
commit
ba1200059c
|
@ -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"`
|
||||
|
|
Loading…
Reference in a new issue