Xge
DIAdiscord.js - Imagine an app
•Created by Xge on 6/20/2024 in #djs-questions
Can't upload emojis: TypeError: terminated
Hi, when I try to upload emojis using a URL, it works fine locally but not in production.
What could be the issue here?
4 replies
DIAdiscord.js - Imagine an app
•Created by Xge on 5/15/2024 in #djs-questions
"No description" error when sending message
Hi, as far as I know, discord.js throwing "DiscordAPIError[undefined]: No Description" indicates that an error unknown to discord.js was thrown. Is there any way to show the raw error sent by Discord?
7 replies
DIAdiscord.js - Imagine an app
•Created by Xge on 4/10/2024 in #djs-questions
408 Request Timeout when sending messages
Hello! Some shards of my bots regularly experience that single messages can't be sent or are sent but it still throws the following error, letting my bot think the message was not sent:
Is this something that can be "fixed" by setting
client.rest.timeout
to something larger than 15_000
? Or is this a Discord issue I can't fix myself?
I do use nirn-proxy, maybe this is part of the issue?
- Just checked, nirn-proxy's monitoring does not say anything about 408 requests..., I guess this is a proxy issue then?6 replies
DIAdiscord.js - Imagine an app
•Created by Xge on 10/30/2023 in #djs-questions
Invalid bitfield in audit log channel permissions event
Hey,
I currently have the issue that errors like these are sent multiple times a minute into my bot's console:
It seems like this is being sent every time I am trying to parse permissions sent from the Audit Log event ChannelOverwriteCreate/-Update/-Delete.
The code causing this error:
I am not sure why this would suddenly be an issue, especially because Discord sent those bitfield numbers.
6 replies
DIAdiscord.js - Imagine an app
•Created by Xge on 9/22/2023 in #djs-questions
Get ApplicationCommand API data
Hi, how would I get API compatible data from an ApplicationCommand object?
.toJSON()
also returns stuff like guild
and applicationId
.7 replies
DIAdiscord.js - Imagine an app
•Created by Xge on 9/1/2023 in #djs-questions
Webhook rate limit
Hi, my bot can't send webhook messages (promise not resolving) but using node-fetch it is sending them just fine.
I thought there might be some issue with djs' rate limit handling for webhook endpoints but even after a full reboot, webhook messages are still not sending using
webhook.send()
which I find very weird, because manual sending using node-fetch just works without issues.
Some additional information:
- This happens every few days for at least an hour.
- Initial interaction responses work fine - follow ups and reply edits don't.
- Probably because initial responses are done using the interaction ( /api/interactions/...
) endpoint.
- And follow ups, etc. are done using the webhooks (/api/webhooks/...
) endpoint.
- Sending messages with bot owned and user owned webhooks both does not work.
- After the "imaginary" rate limit ends, most recent webhook message sent attempts are executed
Is this a known bug for v13 or am I missing something? As discord.js still refuses to send webhook messages after stopping and starting the application but sending the request to the raw endpoint myself works, I am really unsure what the issue is here. Any help appreciated.18 replies
DIAdiscord.js - Imagine an app
•Created by Xge on 12/16/2022 in #djs-questions
Resume gateway session after full restart
Hey, I want to update my bot's code without missing any events and reaching my session start limit.
Is there any way to send a gateway resume event by providing a session_id and sequence number?
5 replies
DIAdiscord.js - Imagine an app
•Created by Xge on 12/5/2022 in #djs-questions
GuildMember.fetch loading 15s-30min but fetching manually using REST works instantly
Hey, I am currently having the issue that on very busy servers (100-800k members), my Discord bot is having issues fetching members properly.
Executing sometimes takes ages while resolves instantly with a rate limit bucket of 4 of 5 left. Is this an issue with discord.js' internal rate limit handling or am I missing something? Any help is appreciated!
33 replies