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:
parent
966d966897
commit
3bbdae9bc1
|
@ -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...)
|
||||||
|
|
Loading…
Reference in a new issue