Quiero que el bot responda solo a cierto usuario, así que escribí este código pero no funciona. ¿Puedes ayudarme al respecto?
const userID = '322032528460611604' client.on("message", function(message) { if(!message.sender === userID) message.channel.send('Hello there!') });
Uso message.author.id
en mi bot y funciona bien.
const userID = '322032528460611604' client.on("message", function(message) { if(message.author.id === userID) return message.channel.send('Hello there!') });