diff options
| author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-31 18:45:23 -0400 |
|---|---|---|
| committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-31 18:45:23 -0400 |
| commit | a47ef150fd38fff3666faccd6f976f660fdbf9f3 (patch) | |
| tree | 3f73c3d03236b09bf824469791f4ef7d2016b0b7 /src/commands/dev | |
| parent | 9aa46f79516c0c044742339c59d471b43060d84f (diff) | |
| download | tanzanite-a47ef150fd38fff3666faccd6f976f660fdbf9f3.tar.gz tanzanite-a47ef150fd38fff3666faccd6f976f660fdbf9f3.tar.bz2 tanzanite-a47ef150fd38fff3666faccd6f976f660fdbf9f3.zip | |
cleanup and deprecated old config commands
Diffstat (limited to 'src/commands/dev')
| -rw-r--r-- | src/commands/dev/servers.ts | 2 | ||||
| -rw-r--r-- | src/commands/dev/sh.ts | 1 | ||||
| -rw-r--r-- | src/commands/dev/superUser.ts | 2 | ||||
| -rw-r--r-- | src/commands/dev/test.ts | 1 |
4 files changed, 4 insertions, 2 deletions
diff --git a/src/commands/dev/servers.ts b/src/commands/dev/servers.ts index d8799f5..c86e889 100644 --- a/src/commands/dev/servers.ts +++ b/src/commands/dev/servers.ts @@ -13,7 +13,7 @@ export default class ServersCommand extends BushCommand { }, clientPermissions: ['SEND_MESSAGES'], userPermissions: ['SEND_MESSAGES'], - superUserOnly: true + ownerOnly: true }); } diff --git a/src/commands/dev/sh.ts b/src/commands/dev/sh.ts index 025a308..93f0d40 100644 --- a/src/commands/dev/sh.ts +++ b/src/commands/dev/sh.ts @@ -11,6 +11,7 @@ const clean = (text: string | any) => { return (text = Util.cleanCodeBlockContent(text)); } else return text; }; + export default class ShCommand extends BushCommand { public constructor() { super('sh', { diff --git a/src/commands/dev/superUser.ts b/src/commands/dev/superUser.ts index 1b2fd7c..4bab8a1 100644 --- a/src/commands/dev/superUser.ts +++ b/src/commands/dev/superUser.ts @@ -16,6 +16,7 @@ export default class SuperUserCommand extends BushCommand { ownerOnly: true }); } + *args(): IterableIterator<ArgumentOptions | Flag> { const action = yield { id: 'action', @@ -38,6 +39,7 @@ export default class SuperUserCommand extends BushCommand { }; return { action, user }; } + public override async exec( message: BushMessage | BushSlashMessage, args: { action: 'add' | 'remove'; user: User } diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts index aa421cd..bb0807b 100644 --- a/src/commands/dev/test.ts +++ b/src/commands/dev/test.ts @@ -29,7 +29,6 @@ export default class TestCommand extends BushCommand { }); } - // eslint-disable-next-line require-await public override async exec(message: BushMessage, args: { feature: string }): Promise<unknown> { const responses = [ 'Yes master.', |
