Nils
DIAdiscord.js - Imagine an app
•Created by Nils on 7/11/2024 in #djs-questions
Sharding not working anymore out of nowhere
Out of nowhere my bot isn't starting anymore, throwing a
ShardingReadyDied
every time after trying to start the seventh shard. I did not change anything with the host the bot is running on. The complete error looks like this:
16 replies
DIAdiscord.js - Imagine an app
•Created by Nils on 11/16/2023 in #djs-questions
Memory leak in discord js
I am currently facing a problem with a memory leak. I don't quite think it's related to discord.js, nevertheless I would like to ask if there are any common mistakes you can make with discord.js that lead to a memory leak. Or are there any other known problems with discord.js that lead to memory leaks?
19 replies
DIAdiscord.js - Imagine an app
•Created by Nils on 11/14/2023 in #djs-questions
Sharding times out after several other shards launched successfully
Good afternoon everybody,
I'm currently stuck with a sharding problem that only occurs on my external VPS. At the moment I can't really differenciate if it is because of said VPS or if it is problem with discord.js, that's why I'm here as my last option of help.
When running the bot on my local computer everything works just fine. Every shard launches correctly and is ready to use afterwards. Now I tried to migrate everything to a VPS to try to put the bot into operation. The problem now is that after several shards launched successfully, the next one times out and I get the following error:
My sharding manager looks like this:
I hope someone finds the solution to this, thanks in advance!
9 replies
DIAdiscord.js - Imagine an app
•Created by Nils on 7/13/2022 in #djs-questions
MessageAttachement isn't working
Hi, I'm trying to add a local file to my embed but it is giving me an
Invalid Form Body
error: Scheme "attachement" is not supported. Scheme must be one of ('http', 'https').
. My code looks like the following:
6 replies
DIAdiscord.js - Imagine an app
•Created by Nils on 6/28/2022 in #djs-questions
.awaitMessages isn't working
Hi, I'm currently trying to make a quiz where you have to guess a random member of a guild by it's profile picture. Therefore I made this command
It fetches all members of a guild, picks a random member out of the collection and sends the profile picture with a embed. Then I want to await the Message with the username of the
member
. Now that's the point that isn't working. Although it sends the username of the member after the 15000ms passed, the bot isn't responding when I send a message with the correct username. It seems like the filter, in my case the member
variable isn't working. Why?6 replies
DIAdiscord.js - Imagine an app
•Created by Nils on 6/24/2022 in #djs-questions
Error when creating Channel
Hi, I'm currently trying to do a support ticket bot. Sadly I'm getting the following problem
HTTPError [TypeError] Do not know how to serialize a BigInt
. My Code is
Also when I comment out the permissionOverwrites I get a different Error DiscordAPIError: Invalid Form Body, name: Could not interpret "{'name': 'ticket - null', 'type': 'GUILD_TEXT'}" as string.
. I suppose that the options I set for the channel are somehow misinterpreted into strings, but why?4 replies
DIAdiscord.js - Imagine an app
•Created by Nils on 6/20/2022 in #djs-questions
Get Message a button is attached to
Hey,
I have a button which is attached to a normal message. When I click the button I want to get the message the button is attached to. How do I do this? I appreciate any help.
3 replies