Skip to content
Advertisement

Tag: discord.js

How do I insert emojis into a nickname in discord.js?

Every time I try to do that, the emoji just changes into a question mark. Here’s my code: Answer Your message variable in the above code is inconsistent. You used ‘msg’ to catch the return value but used ‘message’ to react. Keep it consistent, otherwise, you might face errors. Also, a bot cannot change the nickname of the owner of

Discord.JS How to wait for member reaction

I am making bot to manage my multiple Discord guilds. And I’d like to make confirmation system, like: User does X thing, Bot sends message in sufficient channel, Bot waits for user to react with :thumbdsup: or :thumbsdown: up to 60 seconds If thumbs up, do A, else – do B. If time is up, do C action How can

Discord.js v12 Ban Command

I made a ban command for my discord.js v12 bot. However whenever I run the command I get an error. Here is my code: This is the error I get whenever I run the command I could’nt understand how to correct the problem in the code. I’m a bit new to coding. Can you please help me out!. Thanks in

Discordjs add space between prefix and command

I created a music bot that streams music when someone taps !play in-text channel Now I want to switch !play with please play but it response only with pleaseplay with no space between them and when I tried to change the code: but it doesn’t work at all with an error log (node:5296) UnhandledPromiseRejectionWarning: Error: No video id found: Answer

discord.js setting permission on channel to “/” (neutral)

I am looking to set user permissions on a text channel to neutral/null/”/” but overwritePermissions() seems to only use allow and deny currently, a past post I saw showed setting the value to null but allow/deny seems to prevent that. I am setting permissions on a text channel like this: and would like to effectively undo this action, changing the

How to get if a specific user is online?

I’ve got some code which should send in the current status of a user if they switched to online, but the problem is that it sends the message twice AND that I can’t check who the user who changed their status is. I just want it to check IF the user who changed their status is a person with a

Advertisement