1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 10:43:30 +00:00

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

View file

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