Cannot access 'Canvas' before initialization at Object. in discord.js

前端 未结 0 2049
庸人自扰
庸人自扰 2021-02-14 08:48
Canvas.registerFont(resolve(join(__dirname, "./path/to/font/Discord.ttf")), "Discord");
const { Canvas } = require(\'canvas-constructor\'); // You ca         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题