MrSquaare
MrSquaare
Explore posts from servers
BABetter Auth
Created by MrSquaare on 3/12/2025 in #help
Astro + Drizzle + Cloudflare D1
Hello, Is there a way to properly setup Better Auth with Drizzle + D1 on Astro? Since the D1 DB is only accessible in the Astro context (in an .astro page or in a API Route), it is not possible to return an β€œauth” constant. Is there another way? Thanks πŸ™‚
4 replies
SIASapphire - Imagine a Framework
Created by MrSquaare on 3/7/2023 in #sapphire-support
Catch all chat input command errors listener
Hello ! I tried using the Events.ChatInputCommandError listener to catch any errors thrown by the chat input command, but it never seems to catch any errors. Am I missing something?
4 replies
SIASapphire - Imagine a Framework
Created by MrSquaare on 3/3/2023 in #sapphire-support
Clearing registered slash commands
Hello πŸ‘‹ I would like to know if there's a system provided by Sapphire to automatically clear previous registered slash commands? Thanks!
5 replies
SIASapphire - Imagine a Framework
Created by MrSquaare on 1/29/2023 in #sapphire-support
Interaction user locale first
Hello, I would like to get the TFunction from i18next based on the user locale first and not the guild one Is there a way to do this?
5 replies
SIASapphire - Imagine a Framework
Created by MrSquaare on 1/7/2023 in #sapphire-support
What's the best way to watch for activity changes on a channel
Hello πŸ‘‹ I would like to know what's the best way to develop temporary text and voice channel based on activity. I was going to listen to the message* or voiceStateUpdate events (based on channel type) to update in a database their last activity, and at the same time send an event to warn that a new activity has been detected and thus restart the counter before deleting. However, an implementation like this one seems to me too heavy: retrieving each time the linked resource from the DB, updating it, always have a counter running, and that for each monitored channel. Would you have better ideas to improve my behavior?
2 replies