From 8f3cc30b563489e54e10245a28469ef0db15b252 Mon Sep 17 00:00:00 2001 From: tuanddd Date: Mon, 21 Aug 2023 13:49:40 +0700 Subject: [PATCH] fix: guess game timer/timeout typing --- src/commands/guess/end/slash.ts | 4 +--- src/commands/guess/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/commands/guess/end/slash.ts b/src/commands/guess/end/slash.ts index 35834e489..82ff1b084 100644 --- a/src/commands/guess/end/slash.ts +++ b/src/commands/guess/end/slash.ts @@ -1,7 +1,6 @@ -import { utils } from "@consolelabs/mochi-formatter" import { SlashCommandSubcommandBuilder, userMention } from "@discordjs/builders" import mochiGuess from "adapters/mochi-guess" -import { ThreadChannel, MessageOptions, EmbedFieldData } from "discord.js" +import { ThreadChannel, MessageOptions } from "discord.js" import { now, truncate, groupBy } from "lodash" import { logger } from "logger" import moment from "moment-timezone" @@ -10,7 +9,6 @@ import { capitalizeFirst, equalIgnoreCase } from "utils/common" import { timeouts, timers } from ".." import { composeEmbedMessage } from "ui/discord/embed" -import { SPACE } from "utils/constants" export async function cleanupAfterEndGame( thread: ThreadChannel, diff --git a/src/commands/guess/index.ts b/src/commands/guess/index.ts index 48c53b017..b205689b0 100644 --- a/src/commands/guess/index.ts +++ b/src/commands/guess/index.ts @@ -9,8 +9,8 @@ import end from "./end/slash" import list from "./list/slash" import view from "./view/slash" -export const timeouts = new Map() -export const timers = new Map() +export const timeouts = new Map() +export const timers = new Map() const subCommands: Record = { new: newSlash,