aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/commands
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-21 15:33:36 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-21 15:33:36 -0400
commit6eb42974bdd4da4f9a6d77c8fde4c19f9f0a351b (patch)
tree6b0490f7f17d5d663f0f764589328e8acb79dd22 /src/listeners/commands
parent5c3da90f441c321f55ae735d6002f4da91f2481e (diff)
downloadtanzanite-6eb42974bdd4da4f9a6d77c8fde4c19f9f0a351b.tar.gz
tanzanite-6eb42974bdd4da4f9a6d77c8fde4c19f9f0a351b.tar.bz2
tanzanite-6eb42974bdd4da4f9a6d77c8fde4c19f9f0a351b.zip
fix(db): made it work now
Diffstat (limited to 'src/listeners/commands')
-rw-r--r--src/listeners/commands/slashBlocked.ts4
-rw-r--r--src/listeners/commands/slashCommandError.ts4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/listeners/commands/slashBlocked.ts b/src/listeners/commands/slashBlocked.ts
index d8ef736..e87ba70 100644
--- a/src/listeners/commands/slashBlocked.ts
+++ b/src/listeners/commands/slashBlocked.ts
@@ -1,5 +1,5 @@
import { BushCommand } from '../../lib/extensions/BushCommand';
-import { BushInteractionMessage } from '../../lib/extensions/BushInteractionMessage';
+import { BushSlashMessage } from '../../lib/extensions/BushInteractionMessage';
import { BushListener } from '../../lib/extensions/BushListener';
export default class SlashBlockedListener extends BushListener {
@@ -10,7 +10,7 @@ export default class SlashBlockedListener extends BushListener {
});
}
- public async exec(message: BushInteractionMessage, command: BushCommand, reason: string): Promise<unknown> {
+ public async exec(message: BushSlashMessage, command: BushCommand, reason: string): Promise<unknown> {
this.client.console.info(
'SlashBlocked',
`<<${message.author.tag}>> tried to run <<${message.util.parsed.command}>> but was blocked because <<${reason}>>.`,
diff --git a/src/listeners/commands/slashCommandError.ts b/src/listeners/commands/slashCommandError.ts
index 718e992..b9123e8 100644
--- a/src/listeners/commands/slashCommandError.ts
+++ b/src/listeners/commands/slashCommandError.ts
@@ -1,7 +1,7 @@
import { stripIndents } from 'common-tags';
import { MessageEmbed } from 'discord.js';
import { BushCommand } from '../../lib/extensions/BushCommand';
-import { BushInteractionMessage } from '../../lib/extensions/BushInteractionMessage';
+import { BushSlashMessage } from '../../lib/extensions/BushInteractionMessage';
import { BushListener } from '../../lib/extensions/BushListener';
export default class SlashCommandErrorListener extends BushListener {
@@ -11,7 +11,7 @@ export default class SlashCommandErrorListener extends BushListener {
event: 'slashError'
});
}
- async exec(error: Error, message: BushInteractionMessage, command: BushCommand): Promise<void> {
+ async exec(error: Error, message: BushSlashMessage, command: BushCommand): Promise<void> {
const errorNo = Math.floor(Math.random() * 6969696969) + 69; // hehe funny number
const errorEmbed: MessageEmbed = new MessageEmbed()
.setTitle(`Slash Error # \`${errorNo}\`: An error occurred`)