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 …

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

How to make discord bot wait for reply for 5 minutes and then send a message? Using discord js

I am using Discord js to make a discord bot. The role of the bot is to send a message to user in personal messages and then wait for user response for 5 minutes. If user does not sends anything back …

Discord music bot: prefix not defined

I wanted to make a music discord bot and I’ve been having trouble with it for a while. and I keep getting an error and I got this code from CodeLyon’s video called “Make Your Own Discord Bot | …

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

Discord.js Mention, User Undefined

EDIT: I have found the solution by myself, thank you everybody who sees this post! The solution is : /// SIMPLY ADD || message.member const taggedUser = message.mentions.members.first() || message….

How to respond with embeds

Currently I am trying to work on my bot and update its responses. Right now I am trying to use the code below to make it respond with the random embeds I made. For some reason when doing using this …

How can I make the avatar appear in large format?

const Discord = require(‘discord.js’); module.exports = { name: ‘avatar’, description: ‘returns a users avatar’, execute(message, args){ const { prefix, token } = require (‘../…

Discord.js Bulk Delete command

I am trying to add a bulk delete command to my bot but when I type how many messages I want to delete, I get the following error: Here’s the code: Answer To use the parseInt(), you have to add the decimal base, so 10 -> parseInt(args[0], 10);. The snippet of code I have put above is working well.

(Discord.js) TypeError: Cannot read property ‘add’ of undefined

So here’s the code: When I run the bot, I get the error: As seen on the code, I add the part where the bot would make a role as when the role is unavailable. But still, it thinks as that the role never exist. Before this was copied, I aslo wrote the code like this: And the result is still the same. I also put the bot’s role on the most top list of all roles on my test server. Can anyone find out why? I’m currently using discord.js v12 and stable version of node. Note: full code here: