discord.js - Imagine an app

DIA

discord.js - Imagine an app

Support server for discord.js, a Node.js module to interact with Discord's apps API.

Join

djs-questions

djs-voice

Tutorial Slash Command

https://discordjs.guide/creating-your-bot/slash-commands.html#before-you-continue I got as far as the bit before it requests to create: - commands/utility/user.js - commands/utility/server.js...

Repeated use of an optimal option in a slash command

Is there a way for me to do so an optimal option in the slash command can be used multiple times and maybe return an array? For an example if it's doing something in a category do i want to be able to select channel under that category to skip...

What is the proper way to use discord.js with proxy server?

I want to run my Discord bot using a different IP address for both HTTP (REST API) and WebSocket (WSS) connections — so that all outbound traffic from the bot is routed through a specific proxy. So far I have such simple configuration: ```ts import "dotenv/config";...

Discordjs for win7?

i am not able to get discordjs work on windows 7 something related guild issues also what version of nodejs is requried for it? also it gives proble with like node:

Bot is offline, while my other one is online

I have 2 bots running on different EC2 instances using pm2. They have the same code base, just some different env stuff and questions I use in them. One appears online while the other is offline. They both have the same settings in the dev portal and everything, so it's quite confusing. I'm sure I missed something, but I don't know what.
No description

Best way to check for mutual servers with a user?

I want to know if a user has any mutual servers with the bot, I don't care about how many just whether there are any or not. I have two ideas but really don't like them: - Maintain a cache of all guild members and check the cache. - Fetch the user from every guild and check for a 10007 (unknown member) error....

More information in modals

Is there a way to add a description to a modal? I want to add a bit more info about the modal but the title doesn't accept that many characters and that isn't the best place anyway. What about additional lines of text between the text input boxes? What I'm trying to do is display different modals based on the slash command the user picks and give them information about the character they selected. The modal will show them what they need to do for each step and when necessary, collect information for what they chose to do for the step (there are some where they just reset a dial so I don't need input from them for that. I just want to remind them to do it)....

Poll Fetch

Can i get who react on poll?

evolving nitro thing

Is the evolving nitro thing floating on the discord api? Can I get it?
No description

Trying to send webhook

Does a discord webhook thumbnail url support a s3 presigned url? No idea why it's not showing up and I have no idea how I would debug this. The URL leads to a download with no file extension

Learn d.js

Hello, what is the best way to learn discord.js with typescript ?

Question

Is this just autocompleate or is they a diffrent thing for it?
No description

My members / staff cant see/use slash commands

The following pic are the commands what they should see
No description

Error deploying commands following the JS guide

I'm following the guide provided by Discord JS. When I run the command "node deploy-commands.js", I get an error message that prevents me from seeing slashCommands on my test server bot. PS F:\xxxxxxx> node deploy-commands.js Started refreshing 1 application (/) commands. DiscordAPIError[10002]: Unknown Application...

Discord SKU ID errors

Not sure if this is DJS-related enough but since today I am getting the following error: components[1].components[0].sku_id[BUTTON_COMPONENT_INVALID_APPLICATION]: The application for this SKU does not exists or does not match the message author The SKU ID is 1164974692889808999, which exists under the bot running the code. Code is as follows: ```js...
No description

ESLint (VSCodium) error after using `npm create discord-bot`

Hello, I created a bot using npm create discord-bot and am using the ESLint VSCodium extension. however I am running into an issue in ping.ts, where I am getting an ESLint error:
Parsing error: ESLint was configured to run on `<bot directory>/src/commands/ping.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.eslint.json
However, that TSConfig does not include this file.
Parsing error: ESLint was configured to run on `<bot directory>/src/commands/ping.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.eslint.json
However, that TSConfig does not include this file.
...

why are video_quality_mode and rtc_region missing in auditLogEntry.changes keys?

```typescript const event: Event<Events.GuildAuditLogEntryCreate> = { name: Events.GuildAuditLogEntryCreate, async execute(auditLogEntry, guild) { if (auditLogEntry.action !== AuditLogEvent.ChannelUpdate) return...

Token invalid

hello, im new to discord js and still confused on how and where to put my apps tokens in. picture below