Category "discord.js"

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

message.content.startsWith is not a function error

here is my code const prefix = '!'; module.exports = { name: 'messageCreate', once: false, execute(client, message) { if (message.author.bo

My userinfo command in discord.js is giving only errors

I am trying to make a userinfo command but it aint working.. Only giving errors like: .join is not a function or member is not defind. My friend also did not ge

How do I check if the user is interacting with select menu and disable it in discord.js v13

I want that when the user is interacting with the select menu it should work and then it should disable it after a few seconds when the user stops interacting w

Discord.js getting the server owner user tag returns null

I'm trying to make my bot send an embed when the bot joins a server the embed is supposed to contain the server owner's name but it returns null and doesn't wor

DiscordJS v13 Invalid Form Body

I am trying to make a toggle able slash command, if they pick the disable option it turns it off but when if you pick the enable option it asks to pick a channe

How to make my Discord.js bot that leaves servers below a certain member count

I am making a discord.js bot and trying to get it verified! I want to make it so when you add it to a server and it has below 35 members it leaves it. This is s

How to use Sharp in discord.js to create a welcome image

I recently switched from Canvas to Sharp to create the welcome image that pops up in the welcome channel every time a user joins since I heard that Sharp is mor

How do I make a message collector in discord.js to have multiple responses according to the message the user sent?

I'm trying to make a start command for a currency bot. I'm trying to make a message collector, which asks for collecting for this certain user. And depending on

Select Menu message collector returns interaction has already been acknowledged when ran twice

The command that I'm trying to do this with is a help command with multiple sub-menu's like the FM-bot. Whenever I run my command twice, it always returns Inter

Get user tag by user ID

how I can get user tag (example#0000 (No Mention)) by user ID? const userid = message.channel.topic bot.channels.get(`channelid`).send(`User ID: ${userid}\nUser

Missing Access for Slash Commands

Heres the error message: PS C:\Users\User\Documents\Discord Bot> node . ready C:\Users\User\Documents\Discord Bot\node_modules\discord.js\src\rest\RequestHan

my command handler only recognize the top folder

i have a problem, my Command Handler only recognize the top Folder inside my Commands Directory. Its supposed to show all of the available Folder in Commands Di

How to make a Discord bot tell the current date and time on command?

I want to have my Discord bot tell me the current date and time on a simple command, so if I say "whats the time?" it will tell me. Currently my only solution i