🚨 Fixed some JS-C1003
This commit is contained in:
parent
3e5cbeb237
commit
a510ca7513
2 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue