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...)