How register slash commands?
import { REST, Routes } from 'discord.js';
const commands = [
{
name: 'ping',...
Isolating interactions on Select Menu’s
Hello friends! Looking for some guidance and did not get too far online
Setup:
I have a Select Menu and a Button in a global channel that users can interact with
...looking for a collab
I have half a system done and need assistance with completing it. It’s an extremely advanced ticket system. Thanks!!
deleting a voice channel with 0 users when a user is leaving an other voice channel
Hey guys,
I'm trying to create support system where the bot will create a voice channel when a user joines a waiting room. How can I get the first channel with zero users from a category when a user leaves a waiting room...

Why buttons doesn't worked after bot restart?
Why if the bot sends a button message and is restarted. The button no longer works. Is it possible to change this somehow?
Question about GuildChannel
<GuildChannel>.members(memberId)
<GuildChannel>.members(memberId)
Where does this log come from?
This appears when my client is starting but I am unsure where it is coming from, could it be the unhandled rejection or something?
```js
{
url: 'wss://gateway.discord.gg',...
Interaction failed; Unable to use buttons
```js
if (command === "button") {
const clickme = new ButtonBuilder()
.setCustomId('clickme')...

Unknow interaction
Hello, I've been stuck on the UnknowInteraction error returned by my code for several weeks. The problem is that I can't reproduce the bug, it happens randomly and despite many tries I still can't find the source of the problem.
Discord.js:
```bash
unitybot@1.0.0 /home/debian/UnityBot...
Option Choices Async function.
Hi i'm trying to set my organization repos as string choices. I can use an await promise so I can't figure out how can It could be done. The code I have is this:
```js
.addStringOption(async (option) => {
const values = await getOrgReposValues('Plasmify')
console.log(values)...
Can bot detect other bot message?
Can bot detect other bot message? Like if the bot send hi, my bot will send hello
new usernames?
So when would the new usernames come to discord.js since everyone has them now / almost everyone
permissionOverwrites
interaction.channel.permissionOverwrites.delete(member).catch(console.error);
interaction.channel.permissionOverwrites.delete(member).catch(console.error);
Channel permissions
So I have a bot that changes a bunch of people's permission for a channel. However, I am getting the following
DiscordAPIError[50013]: Missing Permissions
However the bot does have permissions (unless it's a person higher than them)...Not able to get the bot to reply when I say a specific message.
My friend and I are working on making a discord bot. We're trying to make it so when you type something specific, it'll reply. Take the ping/pong example. If I type ping, my bot will reply with pong. However, we have tried using YouTube tutorials to do this, and even if we copy word for word, it doesn't reply to "ping". We even tried using ChatGPT, and when we pasted our code, it said our code was correct and it should work. We really need help on this problem because it doesn't seem like we're...
good practices for project structure for a discord bot?
hi there!
im new to the api as a whole and got kinda bummed out that is still writen in js and doesnt go in depth on project structure like other apis/packages that are more opinionated on its use, could someone guide me? i followed the docs and wrote it in typescript and this post https://sabe.io/tutorials/how-to-build-discord-bot-typescript but doesnt go more in depth, is there a good repo or example project that helps with these kinds of things? specially in discord.js typescript, thank you in advance!...

I don't know how Events works
So, i was trying to make events out of index and i don't know how to make them perfectlly, i tried using the info on docs, but it doesnt leave any error, just don't do anything.
