Skip to content

Tag: discord.js

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 actio…

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) UnhandledPromiseRejec…

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