I’m pretty trash at coding so I need a little bit of help. I’m trying to code my discord bot to delete someone’s messages for one minute after they click a react emoji. It sounds simple but for my tiny pea brain, it’s not. This is what I have got so far. It deletes all messages from different users and
Tag: discord
Discord.js (v13) SlashCommandBuilder addIntegerOption set Range
I want to write a slash command that clears messages. Everything is fine, but there one thing I couldn’t really figure out: How would I set the range for an integer option in a slash command build, or is there even something like this or do I need to do the old-school way and response that the value is out
build error on heroku; trying to make a discord bot
I’m trying to have a discord bot on 24/7 using heroku, but I’m having this build error. I’ve asked multiple people and I haven’t gotten a response. If anyone can help, much appreciated! Answer Check out your package.json, you are trying to install Discord.js v16.11.0. That is not a thing yet, the latest version is v13.2.0
My bot can’t take errors when failling to run a “join” voice channel command
I’m currently coding a discord.js bot and I made this join command so the bot can join my voice channel The problem is that I have no idea how to make it so that if the last function gets an error or doesn’t work at all It can send an error message to the user like @User, I could not
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
Trying to make discord bot but when i attempt to use ‘node .’ I get a client error
I am trying to create a discord bot and when i try to run “node .” in cmd after creating the code for the bot in visual studio code, I get an error message about the Client missing intents. Here is the error message. My code is as follows: (the ‘x’ are the bots clientID) Answer It’s a new issue
How to change this message to an code block message?
I want to change this part into a code block message I tried but it’s not working Here’s the full code Answer Since codeblocks have to be made with tripple `, you can just add them to the beginning and end like you normally do but escape them with a backslash so your normal string template doesnt end early:
Discord.js command handler aliases (discord.js v13)
i want to set a command handler aliases, but the bot is doesn’t response. in ping.js === How i can set? Answer You would want to make certain changes in your command handler as well! the suitable changes you need to make would be: Making it in your execute function so it can find and execute aliases too! Your definitions
Send website visitor IP when accessing website
I am working on a personal project and I was wondering why not use a kind of ip logger that logs the ip of a visitor and sends it to a Discord webhook. The code works, but only locally. I tried hosting the code on Glitch but i was getting this error in the console: grab.js: index.html: Answer This answer
Discord js v13 channel filter not working
I’m currently trying to get the total amount of text channels and voice channels to display in my embed, when I try to filter them as I did in discord.js v12 it gives me an output of 0 but if I use no filter and do guild.channels.cache.size, it prints 4 which is the correct amount ( 2 text channels, 1