aboutsummaryrefslogtreecommitdiff
path: root/src/commands/dev
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/dev')
-rw-r--r--src/commands/dev/servers.ts2
-rw-r--r--src/commands/dev/sh.ts1
-rw-r--r--src/commands/dev/superUser.ts2
-rw-r--r--src/commands/dev/test.ts1
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.',