Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Hey, facing this error while running w npm. #1

@adityasanehi

Description

@adityasanehi

`src/app/client/App.ts:24:22 - error TS2693: 'DiscordWebhook' only refers to a type, but is being used as a value here.

24 this.webhook = new DiscordWebhook();
~~~~~~~~~~~~~~

src/app/controllers/SuccessController.ts:7:10 - error TS2614: Module '"../../../node_modules/discord-webhook-ts/types/Webhook"' has no exported member 'Embed'. Did you mean to use 'import Embed from "../../../node_modules/discord-webhook-ts/types/Webhook"' instead?

7 import { Embed } from 'discord-webhook-ts';
~~~~~

src/app/structures/SuccessHandler.ts:3:10 - error TS2614: Module '"../../../node_modules/discord-webhook-ts/types/Webhook"' has no exported member 'Embed'. Did you mean to use 'import Embed from "../../../node_modules/discord-webhook-ts/types/Webhook"' instead?

3 import { Embed } from 'discord-webhook-ts';
~~~~~

src/app/structures/SuccessHandler.ts:32:27 - error TS2339: Property 'execute' does not exist on type 'DiscordWebhook'.
Property 'execute' does not exist on type 'BaseWebhook & ContentWebhook'.

32 await this.app.webhook.execute({ embeds });
~~~~~~~

Found 4 errors.`

Screenshot_36

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions