Hola, he estado tratando de ejecutar este código e intenté recodificarlo varias veces, pero cada vez que trato de poner 2 ID dentro del if (mensaje.autor.id! = ID de propietario) devuelve el mensaje. acceso a este comando"); solo registra 1 de las identificaciones aquí está mi código actual:
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 }})Tienes algunas opciones diferentes. Así es como lo haría, usando una matriz y Array.includes() :
const allowedUsers = ["user id 1", "user id 2"] client.on('message', message => { if (message.content === prefix + 'listservers') { if(!allowedUsers.includes(message.author.id)) return message.channel.send("You don't have access to this command"); //rest of the code }})