我是编码新手,也是 stackoverflow 的新手。我正在尝试使用这个。
if (command === 'gcc') {
msg.channel.send('Welcome '<msg.author.name>' I see you have selected the name "<name> is this correct?
')
.then(功能(味精){
msg.react(':15:818275907839721492')
msg.react(':14:818276739662479380')
输出消息并调用命令的 Discord 用户名来代替 '
在我的 9mo 按下 nuke 计算机按钮之前,任何帮助表示赞赏。
答案 0 :(得分:0)
您可以使用 msg.reply
自动提及用户。
msg.reply('Welcome ' + msg.author.name + '! I see you have selected the name...");
或者,您可以这样做:
msg.channel.send('Welcome <@' + msg.author.tag + '>! ...');