Closed Benbebop closed 10 months ago
AttachmentOption isn't in UnknownCommandOption so it doesn't get unmarshalled properly.
AttachmentOption
UnknownCommandOption
func main() { var options discord.CommandOptions options.UnmarshalJSON([]byte(`[{"Type": 11, "Name": "attachment", "Description": "attachment"}]`)) fmt.Println(reflect.TypeOf(options[0])) }
*discord.UnknownCommandOption
AttachmentOption
isn't inUnknownCommandOption
so it doesn't get unmarshalled properly.