Trying to use Dom-Parser with Discord.js. Couldn’t find help from any where else. Error on line 15 fs.readFile I also had a lot problems getting fs working. First it wasn’t defined then it could not be runned before initalization, just got that fixed (I hope) Answer var is hoisted. So since you have var fs, there is a variable called
Tag: discord
discord.js eval command returning [object Map] and [object Object]
so I have my eval command, however when I run such things as an eval to set status or something like that, it returns either [object Object] or [object Map]. I have fixed the previous error with [object Promise], however Object and Map still occur. My code is below, if someone knows how to fix this that would be amazing.
Reason after blacklisting command Discord.js
I want to add a reason to my blacklists (with the command !blacklist {userid} {reason}) which are visible in the embeds below like .addField (“💬 Reason:”, somecode) how can I fix this? Answer First you’ll want to check if there is no reason, this can be simple done by checking, for both approaches, if the second argument is undefined, like
guildMemberAdd and guildMemberRemove Embeds not sending anymore (Discord.js)
I’m very confused about this because they were once working, but now I don’t even get any error messages. Here’s the code: (Welcome Embed) (Goodbye Embed) Screenshot of it working: I also have a guildCreate and guildRemove underneath it as well, but I don’t know if that’s the reason why. Answer The issue is most likely Discord API’s relatively new
I am trying to make a discord.js command that creates a role named “MUTED” and overwrites all the channel permission to set “Send message” to false [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I want to make it so that it creates the role and then overwrites the permissions in every channel that exists in the server. Answer
Discord Intents discord.js
I am trying to use this – I am experiencing issues. See the attached image. Anyone know what wrong? Thanks! Answer You haven’t defined the Intents it –
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
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: Get User by Id
I’m trying to create a web application to manage the users of my Discord server. In my database, I have stored only the users’ ids. I tried to use the discord.js API, but from what I’ve understood it requires a discord bot to do that. That’s not what I want. I would like to retrieve the user’s information from my