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

Module Compile Error #14

Description

@Kayxue

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/natico@3.0.2/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/natico@3.0.2/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/natico@3.0.2/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/natico@3.0.2/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/natico@3.0.2/src/struct/commands/CommandHandler.ts:420:34

Found 5 errors.

Natoco Version: 3.0.2
Deno version: 1.17.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions