add eslint rule, careful of null assertions

This commit is contained in:
jacoobes
2022-02-11 09:04:35 -06:00
parent da7c4171d5
commit 189efda9d2
2 changed files with 8 additions and 2 deletions

View File

@@ -2,5 +2,7 @@
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended"],
"parserOptions": { "ecmaVersion": "esnext", "sourceType": "" },
"rules": {}
"rules": {
"@typescript-eslint/no-non-null-assertion": "off"
}
}

View File

@@ -23,6 +23,10 @@ export class Handler {
this.client
/**
* On ready, builds command data and registers them all
* from command directory
**/
.on("ready", async () => {
Files.buildData(this)
.then(this.registerModules);
@@ -124,7 +128,7 @@ export class Handler {
await this.reloadSlash(cmdName, mod.desc, options)
}
case "public": {
// creating global commands!
// creating global commands!
this.client.application!.commands
.create({
name: cmdName,