如何定义信息?

const args = message.content.slice(prefix.length).trim().split(/ +/g);
             ^ReferenceError: message is not defined

有人知道如何定义消息吗?如果有必要,请提供更多代码。谢谢

评论
亲,你左脸
亲,你左脸

seems like your code is not under client.on("message", message => { *code here* }); code. you need to put that const args code inside this code and message error will no longer be shown.

点赞
评论