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

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

Open
adityasanehi opened this issue Aug 26, 2021 · 0 comments
Open

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

adityasanehi opened this issue Aug 26, 2021 · 0 comments

Comments

@adityasanehi
Copy link

`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

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