Phil
Phil
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by Phil on 4/14/2025 in #djs-questions
How to handle cancellations on individual reoccurring events?
yea makes sense... so i guess its in discords hands when its going to be a thing for bots to access. thanks for the clarification and your time ^^
5 replies
DIAdiscord.js - Imagine an app
Created by Phil on 4/14/2025 in #djs-questions
How to handle cancellations on individual reoccurring events?
$ npm list discord.js && node -v
[email protected] /mnt/eba96da4-0484-4eb9-b77b-5e13475978f2/phil/Documents/github/event-cloner

v23.11.0
$ npm list discord.js && node -v
[email protected] /mnt/eba96da4-0484-4eb9-b77b-5e13475978f2/phil/Documents/github/event-cloner

v23.11.0
5 replies
HHono
Created by Phil on 5/31/2024 in #help
[zod, bun]#openapi async/await doesn't work
Argument of type '(c: Context<Env, "/:identifier", { in: { param: { identifier?: string; }; }; out: { param: { identifier?: string; }; }; }>) => Promise<Response>' is not assignable to parameter of type 'Handler<Env, "/:identifier", { in: { param: { identifier?: string; }; }; out: { param: { identifier?: string; }; }; }, MaybePromise<TypedResponse<{ id?: number; identifier?: string; features?: { featureX?: boolean; featureY?: number; }; }, 200, "json">>>'.
Type 'Promise<Response>' is not assignable to type 'MaybePromise<TypedResponse<{ id?: number; identifier?: string; features?: { featureX?: boolean; featureY?: number; }; }, 200, "json">>'.
Type 'Promise<Response>' is not assignable to type 'Promise<TypedResponse<{ id?: number; identifier?: string; features?: { featureX?: boolean; featureY?: number; }; }, 200, "json">>'.
Type 'Response' is missing the following properties from type 'TypedResponse<{ id?: number; identifier?: string; features?: { featureX?: boolean; featureY?: number; }; }, 200, "json">': data, formatts(2345)
Argument of type '(c: Context<Env, "/:identifier", { in: { param: { identifier?: string; }; }; out: { param: { identifier?: string; }; }; }>) => Promise<Response>' is not assignable to parameter of type 'Handler<Env, "/:identifier", { in: { param: { identifier?: string; }; }; out: { param: { identifier?: string; }; }; }, MaybePromise<TypedResponse<{ id?: number; identifier?: string; features?: { featureX?: boolean; featureY?: number; }; }, 200, "json">>>'.
Type 'Promise<Response>' is not assignable to type 'MaybePromise<TypedResponse<{ id?: number; identifier?: string; features?: { featureX?: boolean; featureY?: number; }; }, 200, "json">>'.
Type 'Promise<Response>' is not assignable to type 'Promise<TypedResponse<{ id?: number; identifier?: string; features?: { featureX?: boolean; featureY?: number; }; }, 200, "json">>'.
Type 'Response' is missing the following properties from type 'TypedResponse<{ id?: number; identifier?: string; features?: { featureX?: boolean; featureY?: number; }; }, 200, "json">': data, formatts(2345)
10 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
there seems to be a PR, but the drizzle team didnt seem to prioritize it https://github.com/drizzle-team/drizzle-orm/pull/1692
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
i got it to work on mysql, but in needed to change some things in my schema
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
funnily enough it works even worse with mysql
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
so i guess we can only really switch to mysql, or postgres
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
and even more that the npm package they made isnt supported. but on the other hand it wouldnt make sence, because drizzle runns raw queries...i believe?
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
which makes sense, because its not the same commands, on the other hand im a bit anoied by mariadb for not having this SQL function...
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
so it seams that mariaDB has their own package now. it is unfortunately not compatible with drizzle
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
I wonder... if there is a mariaDB specific package
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
oh... yea that could be the problem...
16 replies
DTDrizzle Team
Created by K6rtsnik on 4/10/2024 in #help
Error using "with" in nextjs
similar to my issue: https://discord.com/channels/1043890932593987624/1227399755512942624 I hope its not a faulty version or something
16 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?
seems that its not working fine. the catch was just too empty. if it cant delete a message, its not a big deal anyways. so i just return the catch
14 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?
will try
14 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?
ill just look into using the partials and implement it normally.. maybe that way it works? will make sure to update
14 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?
a catch throws the same error when applied to the delete function
14 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?
to be fair, i did mess with it before... i will check it out
14 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?
that didnt work
14 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?
its a raw package as this is the only way i found that i am able to detect and track deletions from messages sent prior to the bots restart
// trigger on deleted message with raw package
client.on('raw', async (packet) => {
if (packet.t === 'MESSAGE_DELETE' && packet.d.guild_id) {
client.functions.get('EVENT_messageDelete').run(packet.d);
}
});
// trigger on deleted message with raw package
client.on('raw', async (packet) => {
if (packet.t === 'MESSAGE_DELETE' && packet.d.guild_id) {
client.functions.get('EVENT_messageDelete').run(packet.d);
}
});
14 replies