when user get focusedValue in discord.js how to get which choice did user select in autocomplete
when user get focusedValue in discord.js how to get which choice did user select in autocomplete
Need help with Economy system using slash commands and redis database
Im trying to make a command called give-items that only members with admin permission can use, when
startups
Hi I want to know how to start correctly in djs I teach js the basic concept like variables, function and arry is that enough to start?
How to make your bot run slash commands and prefix commands?
I configured my bot files according to the official discordjs guide, how can I do if I want it to also execute commands with a prefix?
commands
events
interactionCreate.js ready.js...
Error after following the cooldown guide
Hi. New to discord.js, I thus followed the guide. Everything worked well, but I then arrived to the cooldown part. And now, I get this error when running
node index.js
:
```sh
node:events:489
throw er; // Unhandled 'error' event...Building slash commands differently
Hi, i had a discord bot on v13 and JS and i did this to implement slash commands
```js
module.exports = {
name: 'updatepic',
description: '[ADMIN]',...
Get the id of the user who disconnected from vc
Hello, how would it be possible to have the user id of the user that was disconnected?
Message collectors
Why do message collectors get triggered, twice? Or even 3 times. From time to times. I don't think it's suppose to happen. It doesn't always happen. I just want to know if this is a bug?
locale
anyone having issues getting locale from users when initiating a command? i added all the logs, seems no mater what, or the intents, Won't let me see the locale for use with i18n
`const { SlashCommandBuilder } = require("discord.js");
const i18n = require('../i18n.cjs');
...
Find by "About me"
Hello, guys. I'm trying to make a bot, cause on my friend's server there is a LOT of spam bots, they're everywhere and keep spreading around. I'm trying to ban everyone automatically using the common "About me" they have, but I can't find any way to do that. Can someone give me some ideas?
Set deafen
I have an interesting question. We can mute the user's microphone (mute) both on the entire server and in a specific channel. Can we do this with deafen? (in a specific channel)

Error when trying to show modal after clicking button.
I'm trying to show a modal when the user clicks a button included in the reply, but I keep getting the
'InteractionAlreadyReplied'
error.
```js
// Dependencies
const { ButtonBuilder, ButtonStyle, ModalBuilder, TextInputBuilder, TextInputStyle, ActionRowBuilder } = require("discord.js");...New Bot Dev Struggles... Any Tips?
I have a small growing Discord bot that I am very much still actively coding.
I included a dev server invite link on the bottom of every command which gives status and updates, but still not a single user has joined besides those who know me personally (The bot just needs some basic configuring, after that no commands need to run)
The past update came with numerous bugs I didn't catch until just now (it's been like 2 weeks) and several users kicked the bot from their guild without ever knowing what is going on or being able to tell me what was going on.
...
How to do an action in a slash command after a specific amount of time.
This command adds a role to a user, i want the bot to remove this role from the member after 2mins, how do i do?
Number Option
How to add a number option to a slash command a how to get that number option after in a const.
Problem w my /ping Slash command
So idk why my /ping dosnt work, that shows this error, if anyone can help me that would be great thanks
Keep the bot online
So, this is probably a VERY stupid question.
I have a VPS, opened an SSH session using PuTTy, and executed
node index.js
. The bot became online, and commands worked beautiful. So I closed PuTTy.
But after a few minutes, the bot went offline again. I though it would be as simple as just running the file, and then go go bot, but apparently not. Do I need to install a program like pm2 ? (Because this programm was used for pcs where I found it, so I don't know)...