Skip to content

Tag: discord.js

My Discord.js Bot welcome message suddenly stopped working

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

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

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…

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