Referencing ES module import syntax as well as CommonJS require #1611
shantismurf
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am not a very experienced coder, but I am learning quite a lot with this module. My bot was developed using the ES6 module import functionality, but I'm currently experimenting with developing a slash command and noticed that the guide (https://discordjs.guide/creating-your-bot/slash-commands.html) only references CommonJS require syntax. I'm working out how to adapt them, but I thought it might be worth asking if it makes sense to add both cases to the documentation.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions