Category "discord.js"

TypeError: Cannot read properties of undefined (reading 'createdTimestamp') discord.js

Basically i am trying to create a userinfo command for discord.js, i followed some tutorials and i seemed to make one, but i get this error saying: TypeError: C

trying to give role for voter top.gg

i'm trying to give top.gg voters role in my server but there's so many thing happened got me confused and i can't find any solution for it. full source code : h

How to set random colour in a discord.js embed

I have a discord bot and it works perfectly. My objective is that when I send the >help message, the bot chooses a random colour for the embed and sends it.

client.user.setActivity found as null? (Node.js)

I am trying to set the activity of my Discord bot as a "game" however the examples I've found online haven't helped at all. client.user.setActivity("what the bo

How to check if a message author has a role?

I am trying to code a bot for a game idea my friends and I have. The command I'm working on is the score adjuster. Obviously though, I only want moderators to h

discord.js disable “interaction failed”

If an interaction (for example button click) is not replied, discord will display “interaction failed” in the client What they expect you to do: int

Grabbing a message mention taking longer than expected (DJS V13)

I'm using message.mentions.members.first() but the problem is that when I ping a user, the bot replies after a long delay. Video: https://gyazo.com/a8739e60bb86

Discord JS - interactionCreate and messageCreate

I've been trying to use interactionCreate event, but somehow it's not working. I'm not sure why, and I didn't find exact documentation about this event, only th

The value is undefined. (Discord.js newest version and Node.js)

I have spent like 2 hours trying to debug this and I don't know what to do. I get the following error: connection.destroy ^ TypeError: Cannot read properties of

How can i disconnect a user from my voice channel using menu discordjs

So I'm trying to disconnect a specified user that is on my voiceChannel clicking on his username, this is my code: options = []; let perms = channel.members

Discord.js V13: How do I get/ find a category?

I want to find a category just like how you find a channel. let channel = message.guild.channels.cache.get(<id>); Is there a way to find a category like

I am trying to make a discord.js discord bot and I am getting the error: TypeError: interaction.isCommand is not a function

I am making a slash commands and keep getting the error TypeError: interaction.isCommand is not a function. I am using discord.js version 12.5.3. It says that i

this script, it's a code that I'm updating from V12 of discord.js to v13

I want to understand the reason for the error, so if it happens again, you can correct it, the following error appears whenever I use the !whitelist command (my

How to hide slash command to specific user or channel Discord.js v13

Is it possible to hide slash command in discord.js v13.1.0 ? I tried to add some permission but nothing that i found worked like the " command.permissions.add({

Discord.js: Is there any possible way of disabling a menu after selecting one of it's options?

I've very recently had a look at buttons for my discord bots, and in doing so I also discovered the menus that you can create. I want to know how, if it's possi

Discord.Js Bot to create invites for users

I need to figure out how to create an invite link for users so that they can track invites. Currently I have this, however this created the invite for the Bot.

Discord.js Bot can't handle multiple buttons in the same channel (Version 13)

Is there a way to have a command with buttons be used by two people at the same time in the same channel? I made an adventure system which is going well so far,

Node.js node:internal/modules/cjs/loader:936 error while trying to use discord.js

I'm trying to make a discord bot with the command prefix "*" but when I try to get the bot online/run it, it gives me this error: node:internal/modules/cjs/loa

To Discord.js master [duplicate]

i got an error. PLZ HELP ME!! I tried the slash command bot. And i have been getting this error. I have tried hard to solve this error. I gave

How to ping message author and user in Discord.js embed

i recently started with Discord.js and i am currently making a hug command. the command itself is working fine, but the problem i am facing is that i want the b