From b015bec7f66526ec5e959ae99865845f4db4b181 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Fri, 23 Jul 2021 22:02:44 -0400 Subject: feat: some shit - fix breaking changes - refactored active punishments into one table - made listeners args have stricter types --- src/listeners/client/interactionCreate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/listeners/client') diff --git a/src/listeners/client/interactionCreate.ts b/src/listeners/client/interactionCreate.ts index 1183004..0e77fea 100644 --- a/src/listeners/client/interactionCreate.ts +++ b/src/listeners/client/interactionCreate.ts @@ -1,5 +1,5 @@ import { BushListener } from '@lib'; -import { ButtonInteraction, CommandInteraction, Interaction, SelectMenuInteraction } from 'discord.js'; +import { ClientEvents } from 'discord.js'; export default class InteractionCreateListener extends BushListener { public constructor() { @@ -10,7 +10,7 @@ export default class InteractionCreateListener extends BushListener { }); } - async exec(interaction: Interaction | CommandInteraction | ButtonInteraction | SelectMenuInteraction): Promise { + async exec([interaction]: ClientEvents['interactionCreate']): Promise { if (!interaction) return; if (interaction.isCommand()) { this.client.console.info( -- cgit