-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Button issue #31
Comments
Oh i forgot the most important part lol the command:
I removed the button linking part here just because i had a doubt about it |
On reading your error, it is clear that the error is in slashCreate.js, it appears to me that it is a modified slashCreate file. The error is in line 27 (which you have created a custom cooldown system): if (!cooldowns.has(command.data.name)) {
|
On a side note, I will be removing the bug label because it is not a bug on the template end. Feel free to reach out to us on discord if you want further help! https://discord.gg/N7AJFYf8EP |
Describe the bug
I made a command with a button (a prefix command), when i try linking the button or pressing it without even linking it, it crashes and says that command is undefined in slashCreate, thing is, i didn't touch slashCreate while making this, and command is defined in that file, else no slash command would even work.
Error
Additional context
Here is my slashCreate (i only added cooldowns following the djs guide):
Line 60 in bot.js is
async (...args) => await event.execute(...args, client)
Whole loop would be
The text was updated successfully, but these errors were encountered: