Skip to content
Advertisement

TypeError: user.setNickname is not a function

so I have just finished this /setnick command for my Discord Bot, but I am getting the following error.

JavaScript

I have tried looking for solutions on google and here on StackOverflow but I couldn’t find any regarding my problem. Does anyone know what the fix for this is?

Here is the /setnick command file:

JavaScript

Advertisement

Answer

Should be

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