pbr1111 / wheel-of-names-discord-bot

A wheel of names bot build with discord.js
9 stars 4 forks source link

Not working! #3

Closed Unbloated closed 7 months ago

Unbloated commented 7 months ago
> start
> tsc -p . && node dist/bot.js

src/bot/commands/pick/canvas-wheel.ts:1:18 - error TS2305: Module '"canvas"' has no exported member 'NodeCanvasRenderingContext2D'.

1 import { Canvas, NodeCanvasRenderingContext2D } from 'canvas';
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/bot/commands/pick/spin-wheel.ts:28:22 - error TS2345: Argument of type 'import("C:/Users/Unbloated/Desktop/wheel-of-names-discord-bot-main/node_modules/canvas/types/index").CanvasRenderingContext2D' is not assignable to parameter of type 'CanvasRenderingContext2D'.
  Type 'CanvasRenderingContext2D' is missing the following properties from type 'CanvasRenderingContext2D': isPointInStroke, filter, imageSmoothingQuality, direction, and 2 more.

28     encoder.addFrame(ctx);
                        ~~~

src/bot/commands/pick/spin-wheel.ts:32:22 - error TS2345: Argument of type 'import("C:/Users/Unbloated/Desktop/wheel-of-names-discord-bot-main/node_modules/canvas/types/index").CanvasRenderingContext2D' is not assignable to parameter of type 'CanvasRenderingContext2D'.

32     encoder.addFrame(ctx);
                        ~~~

Found 3 errors.

Any idea? ;-;

pbr1111 commented 7 months ago

It should work now! Thanks for letting me know