discord: Add AttachmentOption to UnknownCommandOption

This commit is contained in:
Benbebop 2024-01-06 02:54:39 -05:00 committed by Diamond
parent 966d966897
commit 3bbdae9bc1
1 changed files with 2 additions and 0 deletions

View File

@ -280,6 +280,8 @@ func (u *UnknownCommandOption) UnmarshalJSON(b []byte) error {
u.data = &MentionableOption{}
case NumberOptionType:
u.data = &NumberOption{}
case AttachmentOptionType:
u.data = &AttachmentOption{}
default:
// Copy the blob of bytes into a new slice.
u.raw = append(json.Raw(nil), b...)