【发布时间】:2022-02-15 09:19:19
【问题描述】:
您好,我一直在尝试运行此代码并尝试对其进行多次重新编码,但每当我尝试将 2 个 ID 放入 if(message.author.id != ownerid) 返回时 message.channel.send("您无权访问此命令");它只注册 1 个 id 这是我当前的代码:
client.on('message', message => {
if (message.content === prefix + 'listservers') {
if(message.author.id != ownerid && altid) return message.channel.send("You don't have access to this command");
//rest of the code
}})
【问题讨论】:
标签: javascript node.js discord discord.js