From 3bbdae9bc1ea204a768b33f6171151588aa2499c Mon Sep 17 00:00:00 2001 From: Benbebop Date: Sat, 6 Jan 2024 02:54:39 -0500 Subject: [PATCH] discord: Add AttachmentOption to UnknownCommandOption --- discord/command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/command.go b/discord/command.go index b9ff200..f9d8519 100644 --- a/discord/command.go +++ b/discord/command.go @@ -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...)