Skip to content

Tag: discord.js

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. 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: Answe…

Discord.js search nearest result of an argument

Im not sure if this question has been posted yet but here is what i wanna make: So im trying to make something that find the nearest result of an argument.(Discord.js v13) But i have no idea on how to make it,is there a Code or an API for this feature? For example: !find rock If Rock is in the

discordjs v13 – subtract the variable

The code doesn’t work when it subtract the variable (enemy’s health) This is my code I wonder at the damage – ene_health why it doesn’t subtract the enemy’s health I am using discord.js v13 and quickdb Answer isn’t doing anything. In your case you have to CHANGE the damage …