Discord.JS V12提到了一个中等强度的用户
因此,我在V11中将我的bot更新为V12,Discord.JS V12提到了一个中等强度的用户,discord.js,Discord.js,因此,我在V11中将我的bot更新为V12,+message.author.username+提到了用户,但在V12中没有提到。我有一个命令,上面写着:在V12中,使用+消息,个人:向@user捐赠了10枚硬币。author.username只写着个人:向user捐赠了10枚硬币 这是密码 const Jwork = require('../../beg.json'); const JworkR = Jwork[Math.floor(Math.random() * Jwork.length)
+message.author.username+
提到了用户,但在V12中没有提到。我有一个命令,上面写着:在V12中,使用+消息,个人:向@user
捐赠了10枚硬币。author.username
只写着个人:向user捐赠了10枚硬币
这是密码
const Jwork = require('../../beg.json');
const JworkR = Jwork[Math.floor(Math.random() * Jwork.length)];
var random = Math.floor(Math.random() * 20) + 3;
let curBal = bal[message.author.id].balance
bal[message.author.id].balance = curBal + random;
fs.writeFile('././database/balance.json', JSON.stringify(bal, null, 2), (err) => {
message.channel.send(`
**${JworkR}** has donated ${random} coins to ` +message.author.username+ `!`)
if (err) console.log(err)
});
我需要做些什么才能让它提到一个用户吗 “”
``
工作时,您也可以执行msg.reply()
,但它有固定的格式设置
``
工作,你也可以做msg.reply()
,但它有固定的格式