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
1 changed files with 1 additions and 1 deletions

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"`
}
)