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
Tag: bots
Discord.Intents(32767) vs [Intents.FLAGS.GUILDS]?
Do you know why the “message sent” is displayed only with the first solution? And not with this? (That is the example code on the discord.js documentation.) The bot is ready in both solutions, but I don’t get why only in the first one when I send a message in the server the bot detects it, maybe because I don’t
Bot isn’t listening to guildMemberAdd
I signed up just a few moments ago because something was really bothering me: I have the following code: For some reason, when I leave and rejoin the server, the embed isn’t sending at all to the channel. I am getting no errors in the console. Any ideas on what may have gone wrong? Thanks. 🙂 Answer You need ‘Server
How do I make my command not mention the user?
I just started coding my Discord bot and I made a command that replies to every message that isn’t sent by a bot. When I tried it in DMs it works fine, but when I tried it in my server it would mention the user before the command. In the DM it would say just “test”, but in the server
Discord.js user isnt mentioned
I have a problem with sending messages when a user is tagged or not, I’m working on the pp command (as in dankmemer) but after adding the code so that I can tag a person the bot crashes, what I mean is that after tagging a person it will send a message in the title it will say the user’s
How do I check if a discord.js bot is inside the same voice channel as the member? [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 1 year ago. This post was edited and submitted for review last month and failed to reopen the post: Original close reason(s) were not resolved Improve this question The problem: I
Discord.js Error – MaxListenersExceededWarning: Possible EventEmitter memory leak detected
Every time I try to make more than 10 commands I get the error: I tried fixing it by doing emitter.setMaxListeners() and it didn’t fix it so I searched online and tried to fix it by using process.setMaxListeners(0); but that didn’t work either. If there is a fix for this please let me know, and if you want to see
My Discord bot does not respond to my messages
I am making a bot using Python. I am very new to coding with Python and I don’t understand a lot of things, I am just following a tutorial(https://youtu.be/j_sD9udZnCk) but I am stuck with my bot not responding to my messages. It goes online and offline as intented but it does not respond to my messages. Also it is an
Send a message to my private channel on join & leave
Heyo, I want my bot to send a embed message to my private discord server when it joins & leaves a server. But the problem is that it does not send anything anywhere. My code looks like this: Answer Your code doesn’t activate upon joining the server. For that you have a nice event (that has a misleading name) guildCreate
Kick command | discord.js
I’ve made a kick command for my bot, everything works fine but everyone can use it. I want that only people who have perms to use this command. Is there any solution to fix this problem? This is my code: Please help me! Thank you! Answer Use: