1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-01-05 19:57:02 +00:00

discord: Add omitempty tag for category id (#357)

This commit is contained in:
Sam Xie 2022-11-29 06:54:25 +08:00 committed by GitHub
parent 769215970e
commit 12a84ee999
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ type (
// if moving to a new category.
LockPermissions option.Bool `json:"lock_permissions"`
// CategoryID is the new parent ID for the channel that is moved.
CategoryID discord.ChannelID `json:"parent_id"`
CategoryID discord.ChannelID `json:"parent_id,string,omitempty"`
}
)