mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
add eslint rule, careful of null assertions
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user