Making discord bot mention someone
问题 How do I make my bot mention someone on the server? module.exports = { name: 'mention', description: 'this is a mention command!', execute(message) { mention = message.mentions.users.first(); message.channel.send('Hello' + mention); }, }; I thought it would work but it doesn't. Is there another way to mention someone? 回答1: message.mentions.users.first() returns an object, which is why it's not working. This is the correct way to mention someone: mention = message.mentions.users.first();