Рет қаралды 55,514
Advanced Command + Event Handler (Discord.js v14)
IMPORTANT: In 28:49 and 30:02 change the "break" to "return".
Reason: Using break will only half work as it won't reply if there's more than one permission. However it will still run the rest of the function which means it'll attempt to still run the command at the end of the function. Return will make sure the function stops completely. Sorry for the inconvenience.
🌐 Important links:
areCommandsDifferent.js code: github.com/not...
Discord server: discord.underc...
Source code: github.com/not...
Discord.js series playlist: • Discord.js v14 Tutorial
Discord.js official website: discord.js.org
Patreon: / underctrl
Buy me a coffee (one-time donation): buymeacoffee.c...
Thank you for watching :)