Youssef
Youssef
Explore posts from servers
SIASapphire - Imagine a framework
Created by Youssef on 11/9/2024 in #sapphire-support
Sapphire not updating the command
No description
8 replies
SIASapphire - Imagine a framework
Created by Youssef on 11/9/2024 in #sapphire-support
Sapphire not updating the command
yes
8 replies
SIASapphire - Imagine a framework
Created by Youssef on 11/9/2024 in #sapphire-support
Sapphire not updating the command
No description
8 replies
SIASapphire - Imagine a framework
Created by Youssef on 9/19/2024 in #sapphire-support
chatInputCommandDenied not emiting
i fixed it thanks
6 replies
SIASapphire - Imagine a framework
Created by Youssef on 9/19/2024 in #sapphire-support
chatInputCommandDenied not emiting
No actually i just noticed it was a subcommand that's why not working
6 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
because when i name it Cooldown it doesnt apear even with the typescript augmentation
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
@Boomeravna Sorry, just a question can't i name the precondition as "Cooldown" ?
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
No description
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
yeah thanks for the hints, it worked
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
No description
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
No description
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
and where i can put the duration of the cooldown?
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
do you store the cooldown on maps (collections) or in cache ?
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
just a question
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
why not add the feature
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
thats so dumb
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
so like make my own cooldown system ?
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
but that doesnt seem to work
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
No description
29 replies
SIASapphire - Imagine a framework
Created by Youssef on 8/31/2024 in #sapphire-support
Coodown
i tried to do something like this
const command = this.container.stores
.get("commands")
.find((c) => c.name == "drop");
if (!command) return;

type CooldownPreconditionInstance =
(typeof CorePreconditions)["Cooldown"]["prototype"];

(
this.container.stores
.get("preconditions")
.get("Cooldown") as CooldownPreconditionInstance
).buckets
.get(command)
?.set(user.id, { remaining: 0 });
const command = this.container.stores
.get("commands")
.find((c) => c.name == "drop");
if (!command) return;

type CooldownPreconditionInstance =
(typeof CorePreconditions)["Cooldown"]["prototype"];

(
this.container.stores
.get("preconditions")
.get("Cooldown") as CooldownPreconditionInstance
).buckets
.get(command)
?.set(user.id, { remaining: 0 });
29 replies