im currently creating a unique discord bot for one of my friends' server. And I've got a problem. One piece of code looks like this:
client.on('message', message => {
if(message.content.startsWith(${prefix}kick)){
if(message.member.hasPermission('KICK_MEMBERS', 'BAN_MEMBERS')){
let member = message.mentions.members.first();
the prefix is e$, and when I call this it works corretly, and the bot writes back @member has been kicked. From pc, I see the member's name mentioned, but from phone, I see @invalid-user has been kicked. I searched and I found no question about this.
Sorry for bad english, im trying my best, and thanks for the answers, hope you have a great day!