fluffy
Explore posts from serversSIASapphire - Imagine a framework
•Created by fluffy on 7/11/2024 in #sapphire-support
Cooldown filter precondition
I wish to create a cooldown for a command but instead of filtering by user (
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.)9 replies
SIASapphire - Imagine a framework
•Created by fluffy on 7/3/2024 in #sapphire-support
PaginatedMessage - change select menu string names
Hi, I want to change the string names in the paginated message select menu.
Instead of "page 1" "page 2" I want a custom string based on the embed content.
I've looked through the documents and don't see any string to change under
PaginatedMessage.defaultActions
.
Thanks!4 replies
SIASapphire - Imagine a framework
•Created by fluffy on 4/2/2024 in #sapphire-support
Stricter type checking for string command choices
Hi, was wondering if this is possible.
In this example I am doing a command that can change my bot's status from Online to Invisible/Idle/Dnd.
I want to ensure that the
value
choices in addChoices
have the PresenceStatusData
type in case the string values are changed in a future API.
8 replies
SIASapphire - Imagine a framework
•Created by fluffy on 1/30/2023 in #sapphire-support
Recognising "hidden" in CommandOptions
![](https://utfs.io/f/fe798fcf-224d-4207-8c12-cc38d2151a8d-1nq2cb.png)
5 replies
SIASapphire - Imagine a framework
•Created by fluffy on 1/18/2023 in #sapphire-support
Subcommand unintentionally triggers Events.MessageCommandRun
I have a
/dpm
subcommand is defined as:
I noticed a strange occurence where, if my message command prefix is set to /
, and I run /dpm
as a message, the MessageCommandRun
event will be triggered and gives this error, even though I never registered a messageRun
method.
Wondering if this is intended or am I doing something wrong?7 replies