From ebcc7d4a31ea5a295952bc411eb544f7fb513821 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Tue, 21 May 2024 17:29:00 -0400 Subject: [PATCH] deno fmt and lint fixes --- src/buttons/event-creation/activities.ts | 2 +- src/types/commandTypes.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/buttons/event-creation/activities.ts b/src/buttons/event-creation/activities.ts index c2f6673..9ad17f4 100644 --- a/src/buttons/event-creation/activities.ts +++ b/src/buttons/event-creation/activities.ts @@ -188,7 +188,7 @@ export const Activities: Array = [ name: 'Nezarec Sublime (Week 4)', maxMembers: 6, }, - ] + ], }, { name: 'Onslaught', diff --git a/src/types/commandTypes.ts b/src/types/commandTypes.ts index db518a5..bb3e1d6 100644 --- a/src/types/commandTypes.ts +++ b/src/types/commandTypes.ts @@ -1,4 +1,4 @@ -import { ApplicationCommandOption, ApplicationCommandTypes, PermissionStrings } from '../../deps.ts'; +import { ApplicationCommandOption, ApplicationCommandTypes, Bot, BotWithCache, Interaction, PermissionStrings } from '../../deps.ts'; export type CommandDetails = { name: string; @@ -11,12 +11,12 @@ export type CommandDetails = { export type Command = { details: CommandDetails; - execute: Function; + execute: ((bot: Bot, interaction: Interaction) => void) | ((bot: BotWithCache, interaction: Interaction) => void); }; export type Button = { customId: string; - execute: Function; + execute: ((bot: Bot, interaction: Interaction) => void) | ((bot: BotWithCache, interaction: Interaction) => void); }; export type LfgChannelSetting = {