Skip to content
Advertisement

I’ve followed all the instructions in a tutorial for a bot, and why doesn’t it work?

This code i’m using to try to make a discord bot that will change people’s nicknames in my server for them, won’t work.

JavaScript

Here’s what my terminal and member list look like

Advertisement

Answer

client.run is not a variable, as you have treated it in your question, but instead more similar to a function. Replacing your last line with the following should fix your problem.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement