Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Module Compile Error #14

Open
Kayxue opened this issue Jan 20, 2022 · 0 comments
Open

Module Compile Error #14

Kayxue opened this issue Jan 20, 2022 · 0 comments

Comments

@Kayxue
Copy link

Kayxue commented Jan 20, 2022

Console output these when compiling my mod.ts

error: TS2345 [ERROR]: Argument of type '{ name: string; description: string; choices: ApplicationCommandOptionChoice[] | undefined; options: ApplicationCommandOption[] | undefined; ... 5 more ...; autocomplete: any; }' is not assignable to parameter of type 'ApplicationCommandOption'.
  Object literal may only specify known properties, and 'channel_types' does not exist in type 'ApplicationCommandOption'.      
            channel_types: option.channel_types,
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/src/struct/commands/CommandHandler.ts:417:13

TS2339 [ERROR]: Property 'channel_types' does not exist on type 'ArgOptions'.
            channel_types: option.channel_types,
                                  ~~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/src/struct/commands/CommandHandler.ts:417:35

TS2339 [ERROR]: Property 'min_value' does not exist on type 'ArgOptions'.
            min_value: option.min_value,
                              ~~~~~~~~~
    at https://deno.land/x/[email protected]/src/struct/commands/CommandHandler.ts:418:31

TS2339 [ERROR]: Property 'max_value' does not exist on type 'ArgOptions'.
            max_value: option.max_value,
                              ~~~~~~~~~
    at https://deno.land/x/[email protected]/src/struct/commands/CommandHandler.ts:419:31

TS2339 [ERROR]: Property 'autocomplete' does not exist on type 'ArgOptions'.
            autocomplete: option.autocomplete,
                                 ~~~~~~~~~~~~
    at https://deno.land/x/[email protected]/src/struct/commands/CommandHandler.ts:420:34

Found 5 errors.

Natoco Version: 3.0.2
Deno version: 1.17.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant