so I made a Discord bot, the welcome message was working for the first 3 months or so but suddenly it stopped working, can I asks why? I had been searching as to why it does not work but I couldn’t find why. Thank You before. Answer Hey there your issue is because of recent gateway changes of the Discord
Tag: discord.js
how to add reason in discord.js ban and kick command with commando framework?
I’m currently working on a discord.js bot with commando (which is the official framework/commands handler from the discord.js creator) I have researched this subject on various websites and nothing seems to work with my commando framework. This is the code Any suggestion? or anything that have the same subject? Thank you Answer You’ll need to put it in the options
Javascript can’t replace string
_.replace() doesn’t replacing anything in string. I tried like 5 different ways to do it but still nothing and I guess you are my last hope. My code: I want to get rid of <br /> Output: Answer You need to pass a regular expression with global flag to replace all occurrence of a pattern.
Embed React Pages Discord Js
i made a bot Help command list by saying ” 911 ” in chat . It gives u an embed with the commands and 3 react buttons “forward” “backward” “delete” . It works as intended but idk why I can only use the reaction buttons once . For example : i am on page 1 , i pressed to go
Discord.js Mention, User Undefined
EDIT: I have found the solution by myself, thank you everybody who sees this post! The solution is : That is the solution to this problem, it’s not the same as message.author but at least it works now! Original: I’m having a little problem with my script! Any help would be highly appreciated! Here’s the problem: This is the first
discord bot replies 1 to 2 times
i am currently working on this discord bot but when i call a command it responds twice. would anyone know how to fix this? Answer Have you tried shutting down all other processes of your bot (Google Cloud, AWS …)? The bot could login twice and act like 2 bots, replying twice to the command Happened to me once
How to access a const outside of a method (Discord.js Bot development)
So basically, my bot comes with reaction roles and it works pretty efficiently by using partials. One of the checks before assigning the given role, Is to check whether the reaction role is reacted upon the msgID that I defined in my code. (This is useful for servers that have a channel like #reaction-roles and there is always 1 message
Node.js JsonParser custom function “cannot read property of undefined”
I am trying to make a JSON function that will be able to return parsed data from JSON files for multiple other functions without needing to rewrite the same code over and over. Here is the function I have, along with a variable: When I insert a console.log into this function for testing, it returns the data from jsonParsed without
heroku and nodejs erorr (Web process failed to bind to $PORT within 60 seconds of launch)
I am using discord.js and I have a code where if someone votes for my bot on https://top.gg the bot will send a message, but it got this error Here is my code: Please help me that would be very appreciated Answer Heroku changes the Port that runs Node Application from time to time. Try changing your webhook port to
Can you declare your own function in Discord JS?
Normally I just add to the command files or the index file easily but it’s starting to look messy. Recently I got this leveling system working I would like to be able to put this into its own function and then call it in the “message” section for every time someone sends a message. Is that possible to do? Or