You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Your current tutorial is filled with require() and module.exports. Converting to the ES6 import/export does not work.
your dynamic command file setup has a require() that I could not figure out how to replace (admittedly, still learning node, but getting fairly proficient at it)
get error "SlashCommandBuilder is not a constructor" trying to convert command module
Describe the solution you'd like
I would like to see an updated tutorial with proper ES6 import/export so I can properly learn current coding methods.
Describe alternatives you've considered
No response
Additional notes
I do not wish to learn outdated coding methods, so converting my project to CommonJS is a last resort that I would prefer not to do.
The text was updated successfully, but these errors were encountered:
Thanks for the feedback - we do have plans to rewrite the examples to ES6. In fact, many already have been but the updated guide has not yet gone live.
Thank you for the response. I am looking forward to that update, as every other tutorial I could find also used the require() syntax, despite saying it's updated for ES6...
In regards to your helpful advice and links:
1: I did import the SlashCommandBuilder in that way, but running the code gives me an error that SlashCommandBuilder is not a constructor. Worked fine if I c/p the lines directly into my index.js though.
2: I did try the import() function, but trying to use the object that should have been imported, was not working for me. Probably something I am doing wrong, but so far unable to work it out.
Is your feature request related to a problem? Please describe.
Your current tutorial is filled with require() and module.exports. Converting to the ES6 import/export does not work.
Describe the solution you'd like
I would like to see an updated tutorial with proper ES6 import/export so I can properly learn current coding methods.
Describe alternatives you've considered
No response
Additional notes
I do not wish to learn outdated coding methods, so converting my project to CommonJS is a last resort that I would prefer not to do.
The text was updated successfully, but these errors were encountered: