Update REST API URL while connected to gateway
Is there a way to update the API URL of a client while it is already connected to the gateway / was initialized already?
How to handle multiple tokens.
I have a single file of code. I'd like to run a service where you send a bot token and it runs the code on that bot too. How could i handle that?
discord.js@latest
node.js@latest...
How to execute an event?
I have an event that I made, and that i dont know how to make that event be ran when I react to a message. Please help.
rich presence
hi it's possible to have discord rich presence ? because i see bot with custorm rich presence thanks ^^
How can I programmatically set or update the voice channel status
I'm referring to the line that appears under the voice channel name, like a heart emoji or a short status message.
Is there any way to do this using Discord's API or via discord.js, or is it strictly limited to manual editing via the UI?...
Need help on a Auto role bot.
this is my current code, and it keeps giving this error when i join the server. Can I have help?
`node:events:496
throw er; // Unhandled 'error' event
^...
Problem with new embed component code
how to use that new thingy? where to keep that? is it embed? is it component?
can anyone send a example with discordjs code?...
User "in server" nickname
How do I get user server nickname, already tried GuildMember.nickname, still not working, Whenever I use nickname it just give me user displayname/username
Certain global slash commands missing for Guild Install but not for User Install
in short: for whatever reason the guild install of the bot is missing specific global slash commands, which gets fixed by doing a user install. i see no noticable patterns between the commands that do show up and those that dont, that might indicate why this is happening; no errors at all; the bot has the proper intents and permissions (i think)

Attach or send audios
Hello. I've been wondering if it's possible to send audio files and embed them, either through v2 components or as a message (similar to uploading audio)? I've tried some simpler options, but they upload the file as a link instead of embedding it.
trying to run a palworld server and i get this error after setup
can some 1 help me with this please i am new to node.js and discord.js

Missing Access
Hello, I'm creating a Discord bot for the first time, but when I type node . into the terminal, it says:
Error registering application command: DiscordAPIError[50001]: Missing Access...

Modal interaction already acknowledged?
I have an issue where I'm consistently getting the error
Interaction has already been acknowledged and I think it's because I'm not handling my modal interactions properly. For example.
``TS
const modal = new BeginQuestModal(Quest: ${questName}`, registrationConfig.fields.map(field => field.field_title));
await interaction.showModal(modal);...message.edit is not a function
I'm developing a simple Discord bot for my classmates to manage homework assignments. The bot sends homework details as embeds. However, when I attempt to edit an existing homework embed using a button interaction and modal, I encounter the following error:
/home/matt/School/homeworkBot/responses/edit.js:84
await message.edit({embeds: [updatedEmbed], components: message.components});...
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.
