Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138134

Discord bot normal user name from pc, but @invalid-user from phone

$
0
0

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!


Viewing all articles
Browse latest Browse all 138134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>