gitty
SIASapphire - Imagine a framework
•Created by gitty on 1/11/2025 in #sapphire-support
Is it possible to add some sort of custom property to commands that can be checked in a precondition
I'm trying to make a precondition that will check for a role on the user, I was wondering if there is some way to add a property to a command, where I can check if it exists in a precondition, for example
requiredRoles: ['ADMIN','MODERATOR']
?6 replies
SIASapphire - Imagine a framework
•Created by gitty on 8/7/2024 in #sapphire-support
Cooldowns during command execution
Hi all, wondering if there is a way to set a cooldown using with the global cooldown precondition during command execution? Creating a system for transactions, if said transaction goes through I would like the cooldown to be x amount. Otherwise if it fails, I'd like it to be the default value. Not sure if I need to implement a custom system for this or if this can be achieved with the default tools given.
11 replies