mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-27 09:12:53 +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{}
|
||||
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...)
|
||||
|
|
Loading…
Reference in a new issue