What's the most effective way to handle hundreds (300+) of users who join a single VC to be sorted?
The requirements:
- User joinsVoice Channel A
-Voice Channel A
will have hundreds of users join at once - Each user will need to be filtered (based on internal data from a database, have a local cache with sorting information) to another voice channel - There are currently 4 voice channels to be sorted to, channelsB
,C
,E
,F
, with possibilities of expansion in the future...
How to handle cancellations on individual reoccurring events?
I have a simple bot to clone events and announce them. a new partnership now uses reoccurring events, so i got to fix them today. I had to notice today tho that DJS does not handle cancellations of individual events, unless i don't quite understand how that works. So before I open up a feature request, I was curious, if i was missing something.
I tried checking for GuildScheduledEvent#isCanceled but that does not work and canceling the whole event calls a different event (guildScheduledEventDelete) and not guildScheduledEventUpdate.
But from what I can see on the GuildScheduledEvent - Structure in the docs it doesn't seem to have any fields related to these kinds of edge cases.
...
inquiry
Hello, I would like to ask if I can use underscore in slash command like this:
/add_client
or not?Problem getting null image
The API route https://discord.com/api/v10/users/@me, when it returns null avatar, how can I know which of the 5 default images discord set for the user?
I have already tried to do the calculation, but I was unsuccessful, the result returns 3 for example, when the image is 5....
avatarURL on webhook not working
```js
webhookClient.send({
content: 'Webhook test',
username: 'Test',
avatarURL: 'https://crafatar.com/renders/head/069a79f444e94726a5befca90e38aaf5'...
Issue with dm message event using messageCreate.
```js
client.on('messageCreate', async (message) => {
console.log('Received message:', message); // Log the entire message object
if (message.channel.type === ChannelType.DM) {...
About djs v15
Hey team , i was wandering When will the new version be released
Soon or after 1, 2,3 months?...
How to test a bot that manages dozens of users in a voice channel?
I am working on a discord bot that manages dozens of active users in a servers voice channels. I can easily test with 2-3 users by logging in on several of my own devices, but I am worried that once I hit dozens of users I may run into some rate limiting issues or other bugs and I would love to find these before I start running in production.
The bot sets up an event then moves users around once the event starts, so it'd be pretty embarrassing if something breaks after people arrive for the event.
I tried to set up a bunch of bots and then log them in a loop, but there must be some limitation from Discord because it only lets me log in one bot at a time from my laptop....
How to transfer client to contextmenucommand
when i refer to code before(which button and slashcommand could do that) but it can't transfer client
```js
const { Events } = require('discord.js');
const client = require('../../app');
...
Voice Status
Hey, It seems to me that it is not possible to put statuses on the voice channel, but I found this:
https://github.com/saiteja-madha/discord-js-bot/pull/482
If I use it, I risk nothing with Discord?...
DiscordAPIError[50035]: Invalid Form Body
Im Always getting the same error and i dont know how to fix it the goal was that the numerial buttons always adapt to the number of pages that have the category
Error:
```C:.......\node_modules@discordjs\rest\dist\index.js:727
throw new DiscordAPIError(data, "code" in data ? data.code : data.error, status, method, url, requestData);...
How to create a rest-only (no gateway) application?
I can find tons of documentation and guides on handling interactions via the gateway, but I can't find any documentation on using discord.js to make a REST only application that replies to interactions without a gateway connection. Does discord.js not provide any functionality for that use case?
Acess Guild
Does Discord.js support member access upon request? For example, being able to approve or deny the member to join the server.
Why does my node.js terminal input return this error?
Why does my node.js terminal input return this error?

Started sharding: a lot of `unknown interactions`
I'v seen a consitant increase in unknown interaction since I started shardig (was barely getting any when it wasnt sharded).
My bot works mainly through Dms, which by default are all handled by shard 0 (so there is no need to communicate between shards). I do still get unknown interaction from dms buttons tho (like 1 out of 20).
I dunno what I could be possibly doing wrong since the code barely changed from before sharding to now.
And the first thing I try to do asap is to defer such interaction anyway
...
String Select Menu Builder
I have a question/suggestion to make, why there is an official way to remove the selected (category) from the StringSelectMenuBuilder, the only way to remove the selected (category) is to edit the message.
Possible to tell if command ran on mobile vs. desktop?
Is it possible to tell if a command interaction was ran on a mobile device vs. the desktop app?
I'm hoping to respond with different behavior depending on the device type if possible...
Passing data between interactions
Hi everyone,
I'm looking for suggestions on how to handle passing data between interactions in discord.js. Currently, I use the customId for buttons, select menus, and similar components, as most do. However, the 100-character limit of customId is restrictive, and I need to pass more data than it allows.
For example, one button fetches some data, and later, when another button is clicked, I need to reuse that same information. I'd like to avoid querying the database or an external API again....