cooldown
I get that message on the cooldown command, im not sure why it is undefined, here is my code:
40 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.[email protected]
Node.js v18.12.1
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
👍
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
module.exports = {
cooldown: 10,
data: new SlashCommandBuilder()
.setName('show-tags')
.setDescription('Shows all tags.')
.setDMPermission(true),
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
oh, alr, thank you
ye ima fix it
thanks!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
wait so to make sure i understand you, i am defining it liek this ${command.data.name}
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ye
ok
thanks
Message formatting (mentions, timestamps, emoji, etc.): learn more
ok time to figure out what format i want to use
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yeah, okay, thank you
I was also just gonna do please wait x seconds
until reusing this command
what does that come out to look like? if you dont mind showing
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
alr thats what i was planning on doing 😄
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
yes ok, thanks
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Okay, thank you for your help, appreciate it.
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
im gonna make a pr to have it fixed, whats ur github so i can give u credit as well
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Ok, ill give u credit as well
cheers!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ofc would be rude if i just took it for myself
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Ok, will do
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ye im trying to think how it should look
You are on cooldown, you can use this command again (timestamp)
cuz the timestamp says in
maybe?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
word
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
ye thats what i was thinking
but then it might look strange after the date is pasted
you can use this command again 3 hours ago!
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
its better then it is now
Please wait, you are on a cooldown for `${command.data.name}`. You can reuse it <t:${expiredTimestamp}:R>
that better yo uthink?
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
i think its better without a timestmap ngl