Skip to content

Commit

Permalink
fix: guess game timer/timeout typing
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanddd committed Aug 21, 2023
1 parent 6b7d910 commit 8f3cc30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/commands/guess/end/slash.ts
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/commands/guess/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import end from "./end/slash"
import list from "./list/slash"
import view from "./view/slash"

export const timeouts = new Map<string, NodeJS.Timeout>()
export const timers = new Map<string, NodeJS.Timer>()
export const timeouts = new Map<string, any>()
export const timers = new Map<string, any>()

const subCommands: Record<string, SlashCommand> = {
new: newSlash,
Expand Down

0 comments on commit 8f3cc30

Please sign in to comment.