Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Cooldown filter precondition - Sapphire - Imagine a Framework
S-IaF
Sapphire - Imagine a Framework
โข
2y ago
โข
8 replies
fluffy
Cooldown filter precondition
I wish to create a cooldown for a command but instead of filtering by user
(
cooldownFilteredUsers
cooldownFilteredUsers
)
, I want to filter it with a precondition
(ie user has a certain role in the guild
)
. What is the best way to do this
?
(I don
't want to deny the command usage
, just apply a cooldown for users who do not meet the precondition
.
)
Solution
Yeah i realised afterwards that it didn
't work as intended
. and the precondition didn
't run
I wanted to extend the cooldown precondition method because I
'm not sure how to code the cooldown myself
. So i thought to just add to the super method
Jump to solution
Sapphire - Imagine a Framework
Join
Sapphire is a next-gen object-oriented Discord.js bot framework.
2,261
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Commands not respecting cooldown preconditions
S-IaF
Sapphire - Imagine a Framework / sapphire-support
3y ago
Precondition position
S-IaF
Sapphire - Imagine a Framework / sapphire-support
7mo ago
`Precondition` doubts.
S-IaF
Sapphire - Imagine a Framework / sapphire-support
11mo ago
Precondition variations
S-IaF
Sapphire - Imagine a Framework / sapphire-support
13mo ago