How do I create confirmation flows?
I'm attempting to implement a button that has a deletion function, however I want to confirm that action before proceeding. Here is my current code.
```ts
xport const handleDeleteQuestInteraction = async (interaction: ButtonInteraction, questData: QuestData) => {
const guildId = interaction.guildId;...
Ephemeral messages
I was using ephemeral: true but getting the following warning:
(node:12656) Warning: Supplying "ephemeral" for interaction response options is deprecated. Utilize flags instead.
(Use
node --trace-warnings ...
to show where the warning was created)
What's the correct way of doing it? I can't get the message flag to work....
Global Slash Commands won't appear in one guild
Issue
- Commands won't show up in one of my guilds
- I can invite the bot to different servers and it creates them fine
- I removed the bot and added the bot but none of the commands show up for the guild that is having issue's
- Using
client.application.commands.fetch()
all my commands do show up...
How to add "ephemeral message" code to my code
i have commands that i need to add this to, and dont know how to do it.
Getting messageCreate from one guild but not from another
As title indicates, I'm getting
messageCreate
events from one server, but I'm not from another server. It has all the same permissions (and then some, even tested with administrator), it's just not registering anything from it. Any ideas what could be causing this?Bot transitioning from playing to autopause
Hi I'm taking my first steps into coding a personal project for the first time, I decided to create a discord bot to play URL links of radio stations.
After reading a decent amount of the documentation and understanding the core logic of all the setting up and event handling/command creation I decided to try to get it to join a channel, which was successful, and now I'm trying to have it play a simple track.
Here's the situation: It joins the room, it transitions from buffering to playing, it registers the Playback as "started successfully" but then Audio player transitions from "playing" to "autopaused" and there is no audio. ...

How do I properly manage a modal?
I'm attempting to get a modal working and I have my flow setup like this.
- Slash command /debug
- Create Custom Modal
- Create Filter
-
interaction.showModal(...)
...discordjs/rpc
```js
const DiscordRPC = require("./discord-rpc/src");
const scopes = ["rpc", "rpc.api"];
...

Interactions Confusing themselves w/ modals
I use a interactive modal embed system, for setting a greet message or creating/editing embeds however it confuses the interactions and replaces the embed info with the previous embed modal submissions. and gives me unknown interaction error.
how do i check if a user is an admin
i want to have a discord command which deletes everything in a server. but i don't know how to check if the user who sent it is an admin how do i check?
Type error when sending a container and a action row (CV2)
```ts
const container = new ContainerBuilder();
const title = new TextDisplayBuilder().setContent(
heading('🛠️ × Manages the ticket category for Test', HeadingLevel.Three),
);...
Edit components within a container (CV2)
Hi there. Was just wondering if I could get guidance to how I would edit a specific button accessory on a container when calling something like
interaction.update
. Previous you would just modify the component, but now the entire container in itself is a component, and was hoping I wouldn't have to rebuild the container and pass in the change i made. (Also, perhaps adding a tag for components v2 is a good idea now that it's a fresh feature and people may want to target issues specifically for...Components V2 Select menu
how to make a select menu using Components V2 ? cuz i try smth and it return me an error
```js
const notificationSelectMenu = new StringSelectMenuBuilder()
.setCustomId("notification_roles")...

The up-to-date guide
I'm currently working on a project, which requires me to build a discord-bot. I found a bit of resources, where there is a guide to follow how to build a discord-bots, etc. I found the official documentation and there was a reference to this guide. But I'm quite confused if the guide is indeed the most current/up-to-date one available, if it's not deprecated.
Here is the link to the guide I'm referring to:
https://discordjs.guide/creating-your-bot
I ask, because I followed the guide step by step and turned the code into typescript version, I unfortunately didn't get the result expected, which should be a simple message with the text from the bot. And I suppose the properties places and types might differ from the guide's version and current discord.js 14 version....

Components v2 error
Tried a simpler builder for now:
```js
async execute(interaction, client) {
const components = new ComponentBuilder()
.setComponents([...
Why is there no clear stable release for Discord.js?
Hello,
I noticed that there isn't a clear "stable" release for Discord.js recently.
I am currently using version 14.18.0, but I saw that it jumped to 14.19.1 shortly after.
Could someone explain why there is no clearly marked stable version, and why there are rapid updates between versions?
Thank you in advance!...
Why do I sometimes have to provide <true> to certain types?
I'm not entirely sure why sometimes I have to provide
<true>
to a type annotation. I've only seen this twice so far. For example. Does this have something to do with the message cache?
```ts
const execute = async (message: Message<true>) => {
// Skip if message has no components...component.toJSON is not a function
This was gonna be a message in #djs-help-v14 but I ramble too much
I have a tendency to not use builders. maybe thats a flaw on my part, I don't know, but I always create embeds and commands in straight JSON. I assumed I could do the same with components V2, but when I try to send a simple container with a couple of text displays, I get this error:
```...