MrSquaare
MrSquaare
Explore posts from servers
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