Skip to content
← Back to Community
[Asking for a friend] Bot command does not work.
Profile icon
CodyMarkix

So I'm on a discord server with my friend where we can test our bots and he's making an afk command. And it isn't working for him and so I ask him for the code. And he sends me this.

case 'afk':
message.reply('is now AFK' )
Discord.User.nick ({nick:'[AFK]'})
break;

What needs to be fixed? He's using Discord.js

Voters
Profile icon
ithemad11
Profile icon
CodyMarkix
Comments
hotnewtop
Profile icon
WHSBurner

well that doesn't seem like a full code snippet, but with the limited knowledge, I can see one probable thing that might be wrong with it
Discord.User.nick(`${nick}:[AFK]`)
other than that I can't really see much wrong with it...

Profile icon
NehalRam

I don't know at all