From a510ca7513551403fbe68bc4c22680ce113aa50e Mon Sep 17 00:00:00 2001 From: Vermium Sifell Date: Fri, 21 Oct 2022 19:56:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fixed=20some=20JS-C1003?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/credits/modules/work/index.ts | 4 ++-- src/schedules/shop/modules/roles/index.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/commands/credits/modules/work/index.ts b/src/commands/credits/modules/work/index.ts index 939ee06..a69d155 100644 --- a/src/commands/credits/modules/work/index.ts +++ b/src/commands/credits/modules/work/index.ts @@ -3,7 +3,7 @@ import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; import Chance from "chance"; import { CommandInteraction, EmbedBuilder } from "discord.js"; // Models -import * as cooldown from "../../../../handlers/cooldown"; +import { command as CooldownCommand } from "../../../../handlers/cooldown"; // Configurations import getEmbedConfig from "../../../../helpers/getEmbedData"; // Helpers @@ -51,7 +51,7 @@ export default { logger.silly(createGuild); - await cooldown.command(interaction, createGuild.creditsWorkTimeout); + await CooldownCommand(interaction, createGuild.creditsWorkTimeout); const creditsEarned = chance.integer({ min: 0, diff --git a/src/schedules/shop/modules/roles/index.ts b/src/schedules/shop/modules/roles/index.ts index 6b863d0..d3c7973 100644 --- a/src/schedules/shop/modules/roles/index.ts +++ b/src/schedules/shop/modules/roles/index.ts @@ -2,8 +2,8 @@ import { Client } from "discord.js"; import prisma from "../../../../handlers/database"; -import * as dueForPayment from "./components/dueForPayment"; -import * as overDueForPayment from "./components/overDueForPayment"; +import { execute as dueForPaymentExecute } from "./components/dueForPayment"; +import { execute as overDueForPaymentExecute } from "./components/overDueForPayment"; export const execute = async (client: Client) => { const roles = await prisma.guildShopRoles.findMany(); @@ -15,13 +15,13 @@ export const execute = async (client: Client) => { const now = new Date(); if (nextPayment > now) { - dueForPayment.execute(client, role); + dueForPaymentExecute(client, role); return; } if (nextPayment < now) { - await overDueForPayment.execute(client, role); + await overDueForPaymentExecute(client, role); } } };