Skip to content

Typescript automatic environment detection

Compare
Choose a tag to compare
@lntel lntel released this 22 Mar 19:09
· 66 commits to master since this release

As of version 7.0.0, if you are using typescript, it will no longer be necessary to define ./src or ./dist, these will be extracted automatically from the tsconfig.json file. An example of this is below:

bot.loadCommands('commands', files => {
    console.log(files);
});