From 12a84ee999f4356a135318c6e84598405933ee61 Mon Sep 17 00:00:00 2001 From: Sam Xie Date: Tue, 29 Nov 2022 06:54:25 +0800 Subject: [PATCH] discord: Add omitempty tag for category id (#357) --- api/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/channel.go b/api/channel.go index 7f4562a..301462b 100644 --- a/api/channel.go +++ b/api/channel.go @@ -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"` } )