#Reply During Cooldown

1 messages · Page 1 of 1 (latest)

near hemlock
#

Can I make the bot reply with the remaining time of cooldown delay ?

tawdry bladeBOT
#

@near hemlock to help others find answers, you can mark your question as solved via Right Click Solution Message->Apps->✅ Mark Solution

upper kernel
#

when the command gets denied, you should check if the identifier is equal to preconditionCooldown

#

but if you wanna specifically get the remaining time:

Reflect.get(Object(context), 'remaining');```
#

assuming you have context defined from the command denied event

tawdry bladeBOT
#

Thank you for marking this question as solved!

Question Message ID

1085629462776926389

Solution Message ID

1085655517516529774

willow shard
#

Marked as answered because that's correct