Skip to content

tutorial ES6 update #1554

Open
Open
@time4nothing

Description

@time4nothing

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.

  1. 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)
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    t: requestSuggestion to add new or change existing content

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions