aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/extensions/discord-akairo/BushCommandHandler.ts7
-rw-r--r--src/lib/extensions/discord-akairo/BushListener.ts7
-rw-r--r--src/listeners/commands/slashStarted.ts2
-rw-r--r--src/listeners/other/consoleListener.ts3
4 files changed, 13 insertions, 6 deletions
diff --git a/src/lib/extensions/discord-akairo/BushCommandHandler.ts b/src/lib/extensions/discord-akairo/BushCommandHandler.ts
index dacd17f..ae8f95b 100644
--- a/src/lib/extensions/discord-akairo/BushCommandHandler.ts
+++ b/src/lib/extensions/discord-akairo/BushCommandHandler.ts
@@ -19,7 +19,12 @@ export interface BushCommandHandlerEvents extends CommandHandlerEvents {
slashBlocked: [message: BushSlashMessage, command: BushCommand, reason: string];
- slashMissingPermissions: [message: BushSlashMessage, command: BushCommand, type: 'client' | 'user', missing: Array<PermissionString>];
+ slashMissingPermissions: [
+ message: BushSlashMessage,
+ command: BushCommand,
+ type: 'client' | 'user',
+ missing: Array<PermissionString>
+ ];
}
export class BushCommandHandler extends CommandHandler {
diff --git a/src/lib/extensions/discord-akairo/BushListener.ts b/src/lib/extensions/discord-akairo/BushListener.ts
index 2583e85..59b6162 100644
--- a/src/lib/extensions/discord-akairo/BushListener.ts
+++ b/src/lib/extensions/discord-akairo/BushListener.ts
@@ -3,7 +3,10 @@ import EventEmitter from 'events';
import { BushClient } from './BushClient';
export class BushListener extends Listener {
public declare client: BushClient;
- public constructor(id: string, options?:{emitter: string|EventEmitter, event: string, type?: 'on'|'once', category?: string}){
- super(id, options)
+ public constructor(
+ id: string,
+ options?: { emitter: string | EventEmitter; event: string; type?: 'on' | 'once'; category?: string }
+ ) {
+ super(id, options);
}
}
diff --git a/src/listeners/commands/slashStarted.ts b/src/listeners/commands/slashStarted.ts
index 6ff3c6e..f49f5dd 100644
--- a/src/listeners/commands/slashStarted.ts
+++ b/src/listeners/commands/slashStarted.ts
@@ -14,7 +14,7 @@ export default class SlashStartedListener extends BushListener {
`The <<${command.id}>> command was used by <<${message.author.tag}>> in ${
message.channel.type === 'DM' ? `their <<DMs>>` : `<<#${message.channel.name}>> in <<${message.guild?.name}>>`
}.`,
- true
+ true
);
}
}
diff --git a/src/listeners/other/consoleListener.ts b/src/listeners/other/consoleListener.ts
index 90f9871..8bd834f 100644
--- a/src/listeners/other/consoleListener.ts
+++ b/src/listeners/other/consoleListener.ts
@@ -14,8 +14,7 @@ export default class ConsoleListener extends BushListener {
public async exec(line: string): Promise<void> {
if (line.startsWith('eval ') || line.startsWith('ev ')) {
- const
- sh = promisify(exec),
+ const sh = promisify(exec),
bot = this.client,
config = this.client.config,
client = this.client,