Phil
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by Phil on 4/14/2025 in #djs-questions
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.
Source Code/Repo with relevant line: https://github.com/FlippedCodes/event-cloner/blob/975cb4aaf753d9db8b9bc95c44f7c723f36aa16e/index.js#L126
5 replies
[zod, bun]#openapi async/await doesn't work
This ossue was previously on https://discord.com/channels/1011308539819597844/1012485912409690122/1242558525012709539, but I was advised to open it here.
here is a noob question. Im quite new to TS, bun and Hono with Zod. I cant make sense of why TS is screaming at me in the first line with async
the error reads
I think im returning my result wrong? it works fine, when returning it normally without my DB stuff and async/await
I havent tried running it with that error.. but I kind of want to resolve it first regardless.
10 replies
DIAdiscord.js - Imagine an app
•Created by Phil on 2/12/2023 in #djs-questions
How to handle message deletions when the message in question is already gone?
Helo!
I ran into an issue where a message was already deleted and i cant get the bot to not throw an error "Unknown Message".
14 replies
DIAdiscord.js - Imagine an app
•Created by Phil on 9/20/2022 in #djs-questions
Bug when using AttachmentBuilder.setSpoiler
I noticed, that it is not possible to set a attachments spoiler with .setSpoiler. I have been told to ask here first, before reporting to GitHub. I also tested the text branch, and it still seems to be there.
Steps to reproduce:
- use AttachmentBuilder
- use a URL as the attachment argument
- use setSpoiler function
What should happen:
Set the spoiler, so the file later gets marked that way in discord.
What happens instead:
Throws following error:
32 replies