We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 121760a commit e58e07eCopy full SHA for e58e07e
commands/core/stats.js
@@ -1,7 +1,7 @@
1
const Command = require("../../structures/Command.js"),
2
Discord = require("discord.js");
3
4
-const { CanvasRenderService } = require("chartjs-node-canvas");
+const { ChartJSNodeCanvas } = require("chartjs-node-canvas");
5
const width = 800;
6
const height = 300;
7
// White color and bold font
@@ -45,7 +45,7 @@ module.exports = class extends Command {
45
server: message.guild.name,
46
days: numberOfDays
47
}));
48
- const canvasRenderService = new CanvasRenderService(width, height, () => {});
+ const canvasRenderService = new ChartJSNodeCanvas({ width, height });
49
const image = await canvasRenderService.renderToBuffer({
50
type: "line",
51
data: {
0 commit comments