I want to make a countdown timer that uses a command /timer minutes seconds where the user chooses how long the countdown will be. I want the bot to send the timer as a reply to the command which I’ve successfully done. However, I also want the message to update along with the timer. I can console.log the timer and
Tag: bots
Using JavaScript, how can I pull info from a database and order it in a list?
I have a rough idea on how to do this, but it doesn’t seem to be working too well. What I have already achieved is pulling all of the data necessary that needs ordered. What I need is a way to take all of that information and order it from the highest number to the lowest number, and then display
Why does my addrole command have errors? (discord.jsV12)
So basically my addrole command after the new version of discord.jsv13 no longer works and displays errors like role.id is not a function or role.id is not defined even though I believe there is no error, I’m pretty experienced with javascript but I tried different methods of fixing it but neither seem to do the trick, maybe because v12 is
Discord.js v13 How to prevent mod commands from working on mods?
So I wanted to make a mute command for my Discord bot. It is supposed to mute a mentioned user untill they are unmuted through another command (WIP), additionaly there should be an option to give a reason. If there is no reason provided it just says Reason: none. I’ve managed to Restrict the command acces to a mod role
My discord bot not updating status when it joins a new server
My bot not updating when someone invites my bot to their/another server. I have to restart the code, then it is working. I want that my bot updated when someone invites in status. My current code is: PREFIX = < Answer It seems you want to update the bot’s status whenever your bot joins a new server. Instead of using
Collect reaction from dm message triggered by ‘guildMemberAdd’
My bot sends a message when a new member is added to the guild. The message goes to a specific user. Now I need to collect the reaction in order to assign some role to the new member. Until this point, the code works fine. But I can’t find a way to collect the reactions, every code I’ve tried doesn’t
Discord Bot – Wait for Reply after Interaction
Probably I didn’t understand quite well how Discord API works when we use awaitMessages. What I’m trying to do is to wait for a message from the user after a button was clicked in a private channel: As you can see, the user clicks on the button, a message is sent asking for the dialogue. After that the bot should
Message collector responds to other people’s messages
I’m trying to make a collector which will collect the mentioned user’s message. But even with filter my bot respond to it’s own message and other peoples messages! Here is my test.js file code: I was changing my filter many times, but I still can’t fix this problem, so what am I doing wrong? Also I use djs v13 Answer
Discord bot not responding/reacting to anything (JS)
So I am new to the world of discord bots and wanted to try myself on this new challenge. I got the foundation running after watching a few tutorials and reading a few posts but now my problem is that the bot doesn’t react to anything after starting up… All it does is displaying: ‘Ready!’ in the console. After that,
How to use syntax highlighting for code Blocks for Bot in discord.js (v13)?
I am trying to make a terminal accessible in the discord using the bot. The code for this command is : When i run the command the syntax highlighting isn’t displayed in the code Block. I have attached a picture of what i meant. Image 1 Image 2 Answer I found the answer. Sorry for the inconvenient post, In case