Unknown Interaction error
i've tried all things to fix the issue but none of them worked. Even chatgpted it but still. Anyone knows why?
```js
client.on('interactionCreate', async (interaction) => {
if (interaction.isCommand()) {...
Is there any way to see the used invite code on GuildMemberAdd event?
I have seen some posts on Github about it but I didn't find anything that indicates if I can get the used invite code when the member enter your guild.
there's a code explaning what I would like to know:
```js
client.on(Events.GuildMemberAdd, async (arg) => {...
Error on interactionCreate
```js
const { Events, MessageFlags } = require('discord.js');
module.exports = {
name: Events.InteractionCreate,...
How to reset option after selecting from string select menu
This might be a minor thing, but I was wondering how you can make it after selecting an option inside of a string select menu, it resets the option back?
Example: By default, "select ping" is selected
After Clicking, I want it to reset back to the "select ping" option and not whatever I actually selected
...

Rate limiting
Could someone explain to me how rate limiting works? I don't want to violate the terms of service.
I am currently writing my bot to automatically update messages. Fortunately, I haven't received any rate limiting warnings yet. However, my question is that the bot runs on a few hundred servers, and if all of them use the auto-refresh function, I'm afraid I'll run into problems.
Furthermore, my bot occasionally sends notifications when a player reaches a new level or dies. Therefore, I am wondering whether it is acceptable to simply utilise the Discord library, as I have read that the library handels rate limiting.
...
why isn't my rpc working?
```js
const rpc = new Client({ transport: 'ipc' });
rpc.on('ready', () => {
console.log('Discord RPC connected');...
approximateMemberCount no longer showing
Since today Discord API (via discord.js) is not returning approximateMemberCount, which has been working for 5 years just fine.
We just call
await this.client.guilds.fetch(id, { withCounts: true, cache: true }), but now the guild object only gives null for approximateMemberCount.
Nothing on our end has changed, and the issue persists on local and production environments....My Bot test
hello i heard i can test my bot in here and i wanted to know if i could invite my bot in here?
Timeout with no any specific
Bot always restart with no specific reason
```json
"dependencies": {
"@aws-sdk/client-s3": "^3.735.0",
"@discordjs/formatters": "^0.6.0",...

Question regarding the behavior of Guild.fetchAuditLogs
Lets say for example I listen to
roleCreate event in the client, is it guranteed that the audit log entry for the event exists when I fetch the entries from Guild.fetchAuditLogs after the event was emitted?
Example code for better understanding:
```ts
client.on("roleCreate", async(role: Role) => {...I want to know about VC-Stats API
const rest = new REST({ version: "10" }).setToken(process.env.TOKEN);
await rest.put(`/channels/${channelId}/voice-status`, {
body: { status },
});
const rest = new REST({ version: "10" }).setToken(process.env.TOKEN);
await rest.put(`/channels/${channelId}/voice-status`, {
body: { status },
});
Message Attachments are empty?
Hi i'm trying to read out if a message has a image attached.
I'm running the server in debug mode with vscode attached but if i inspect the message object the attachments collection is empty even tho the message definitely has an image attached....

Differentiate between multiple autocomplete in one slash command
interaction.options.getFocused() gets me the value of the focused option.
But how can I get the name of the focused option?...Upgrading older discord.js project to newest version
Hi guys, iam working on my discord bot now again.
iam using a custom model for message because of some unnecessary properties.
```ts...
Alternative syntax for gallery items
I have this code```ts
const imgs = [/* ... */];
const gallery = new MediaGalleryBuilder().addItems(
imgs.map((img) => (item) => item.setURL(img))...
What are the best practices?
Using defer reply for all type of api and database calls ?
Or should I use reply .
Just want to figure out best user case of defer reply and reply
System I am using
Dedicated server from ovh rise 1 ...
hello, what do i need to do, to have on thumbnail head of minecraft skin (nick name is in the modal)
the variable for nickname is ${nick1}
Improve error debugging
As you can see in the screenshot, I have an interaction handler that runs the various handlers of my slash commands, like autocomplete.
There's a bug in the code causing the debugger to stop (break on caught and uncaught exceptions).
The problem is that I can't tell from the call stack where this error was originally thrown....
