Category "discord.js"

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

Discord.client is not a constructor - discord.js

i made a discord bot and tried a beginner code i found on youtube, this is my code and my errors index.js // Require the necessary discord.js classes const Disc

How do I make a command in Discord bot in js that insert data in a database with Sequelize?

I'm working on a Discord bot using node.js modules and Sequelize to database, and I want to add a command that users type and the bot registers them in database

Discord.js how can bot ping when someone with a specific role leave

I made a bot and I want to add a feature to my bot. ping a specific room when people with a custom role leave the server. So, for example, we'll know when peopl

How to make bot grab perma server invite link

I'm working on a bot project that has invite feature, currently I'm having trouble with this command that allow bot to grab server perma invite link (that made

How can I convert opus packets to mp3/wav

I created a discord bot with discord.js v13, I get trouble with converting the opus packet to other file types, even the discord.js official examples haven't up

Discord.js timeout timer not working and delete right away

Im trying to send a embed then after 5 seconds ins gonna get deleted. I haved tried this. client.on('messageCreate', async (message) => { if (message.co

How to create and set permissions of a role at the same command in discord.j?

I have been trying to make a command that creates the roles that are necessary for some actions of the bot and I have successfully made the code for creating th

Tenor API search varied results

I'm making a Discord bot. Currently where if you type -gif **arguments** it uses the Tenor API and posts the result of the gif within a message which does work