mirror of
https://github.com/sern-handler/handler
synced 2026-06-06 01:16:55 +00:00
eslint require semis!
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
"parserOptions": { "ecmaVersion": "esnext", "sourceType": "" },
|
||||
"rules": {
|
||||
"@typescript-eslint/no-non-null-assertion": "off",
|
||||
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals" : true }]
|
||||
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals" : true }],
|
||||
"semi" : ["error", "always"]
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ import type {
|
||||
Message
|
||||
} from 'discord.js';
|
||||
|
||||
import { Ok, Result, None, Some, Option } from 'ts-results';
|
||||
import { Ok, Result, None, Some } from 'ts-results';
|
||||
import { isBot, hasPrefix, fmt } from './utilities/messageHelpers';
|
||||
|
||||
/**
|
||||
@@ -154,6 +154,7 @@ export class Handler {
|
||||
}
|
||||
case 'public': {
|
||||
// Creating global commands
|
||||
// TODO : warn user they will be creating a public command
|
||||
await this.client.application!.commands
|
||||
.create({
|
||||
name: cmdName,
|
||||
|
||||
Reference in New Issue
Block a user