mirror of
https://github.com/sern-handler/handler
synced 2026-06-27 10:12:14 +00:00
add eslint rule, careful of null assertions
This commit is contained in:
@@ -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