Interaction from Guild the bot is in emitting with uncached Guild
Continuing here to make it easier to keep track
Is it okay that im 10 years old?
So, i was born in 2014 is it okay to use discord? I had this question for many years of my scamming experience in discord. Can someone please answer? Thank you π @Mods
Internal Server Error
Discord issues an Internal Server Error when my embed field is 38 characters longer
Embed with error:
```{
"color": 1578518,
"title": "ΠΠΠΠ‘Π’Π«",...
Setting emojis in a select menu
``js
select.addOptions(
new StringSelectMenuOptionBuilder()
.setLabel(
${result.label}`)
.setDescription('test')...Catching an error and sending custom error
I don't know if I have phrased the title well, but is it possible to filter an error and make it custom?
So what I mean is if I get an error
DiscordAPIError: Interaction has already been acknowledged.
, can i make is so the bot will send a custom error instead of ```Error handling interaction: DiscordAPIError: Interaction has already been acknowledged.
at RequestHandler.execute (/home/customaddress/bottest/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/home/customaddress/bottest/node_modules/discord.js/src/rest/RequestHandler.js:51:14)...can't read the mentions of a webhook
I have a minor issue. So to give vote rewards, I have a webhook from top.gg that logs everytime a user votes. I usually get the userID of the user through the webhook but I just noticed if someone who is not a member of my support server votes the bot, somehow the mention of the user in the webhook disappears although in the message it is there.
I'm getting the user with this :-
User = message.mentions.users.first()...
Convoluted code giving InteractionAlreadyReplied error
Rather than asking for help with the code, I wanted help with the structure of it. My mango main goal is to blow up display a modal via reaction to allow the user to insert both the comment and rating. I was trying to first get it to work crudely as in put everything I'd need for that to work and then start refactoring and organizing it afterwards but I think I've stared at this long enough to fry my brain.
I've done this by setting up multiple collectors to listen for the reactions the user picks over and over.
The code...
retrieve all messages from a user
Hello, I wanted to know if it was possible to retrieve all the messages that a user has sent in a Channel, which are not necessarily in the bot cache. I've already tried fetching by 100, but it's way too long and makes too many API calls, so is there another way ?
Slash Command registration in files and in deploy-commands: double declaration
Hello, I asked for help a lot of times here and every times I sent my code, the member who was assisting me asked me "Why do you declare commands twice? in the
deploy-commands.js
file and in the command file"
My only answer was because it was listed in the guide and if i declare it only one it doesnt work
If someone can, help me to declare commands only once...Separated inline's fields on embeds
Hiya, I'm looking to do something like the first image (recreated in DIscohook (someone needs to update this tool,its outdated with formatting features))
Basically, being able to start separete inlines.
Inline, Inline...

String Collectors not Collecting?
```// User interaction - Add Line Item Button
if (newOrderButtons.customId === 'addlineitem') {
// Log start newOrder type select
console.log('[newOrder] Started newOrder Type Select');
...
Database system recommendations?
Does anyone have a favorite database system they use for their bots? I would love a recommendation, preferably something that's free.
It only needs to hold enough data for one server for free, but it would be great to have something that could scale and is easily readable.
I've used Firebase in the past....
error in sharding
[ SHARD ] Shard 0 in cluster 0 is deployed
Error spawning shards: Error [ShardingReadyTimeout]: Shard 0's Client took too long to become ready.
at Timeout.onTimeout (/home/container/node_modules/discord.js/src/sharding/Shard.js:183:16)
at listOnTimeout (node:internal/timers:581:17)
at process.processTimers (node:internal/timers:519:7) {...
Getting "Unknown message" sometimes...
yo. Excluding command handling I have something like this:
``ts
client.on("interactionCreate", (interaction: Interaction) => {
// if interaction is component I run execution method
const loadingContent = loadingEmoji ?
<a:${loadingEmoji.name}:${loadingEmoji.id}>` : "...";...Debug Undici
so discord.js uses undici on the backend and I've been having connection issues so I want to debug it.
I've added a startup flag of
NODE_DEBUG=undici
my .env
but nothing logs. I can only assume I'm either doing it incorrectly or I need to use undici myself and not how it's used by a package (discord.js)
Can anyone assist me with this?...Vote Button Update Logic
Hey,
I'm working on a bot that implements mafia game mechanics, and I'm facing a challenge with updating the dynamic count emojis on voting buttons during the mafia vote phase.
In the mafiaVote function, I dynamically create buttons for each non-mafia player, where the emoji on each button represents the current vote count. The logic works well for individual votes, but I'm struggling with updating the interaction for all mafia players after each mafia vote....
UND_ERR_CONNECT_TIMEOUT
Hello I am new to discord.js. I am trying to follow guide to learn how to bulid a basic bot on discord. As image shows, I run the script it comes to timeout fault. Then I try to ping discord.com. I certainly confirm the question is how to connect the discord server. I am now in China using a VPN. But it does not still work. What should I do? I really want to develop a Bot for my own community. Thanks!
