diff --git a/src/commands/economy/balance.ts b/src/commands/economy/balance.ts index 34a5386..d55df8d 100644 --- a/src/commands/economy/balance.ts +++ b/src/commands/economy/balance.ts @@ -1,7 +1,6 @@ import { createCommand } from "@/lib/utils"; import { SlashCommandBuilder, EmbedBuilder } from "discord.js"; import { userService } from "@/modules/user/user.service"; -import { createWarningEmbed } from "@/lib/embeds"; export const balance = createCommand({ data: new SlashCommandBuilder() diff --git a/src/commands/economy/daily.ts b/src/commands/economy/daily.ts index ee2f6f2..be84843 100644 --- a/src/commands/economy/daily.ts +++ b/src/commands/economy/daily.ts @@ -1,4 +1,4 @@ -```typescript + import { createCommand } from "@/lib/utils"; import { SlashCommandBuilder, EmbedBuilder, MessageFlags } from "discord.js"; import { economyService } from "@/modules/economy/economy.service"; @@ -15,10 +15,10 @@ export const daily = createCommand({ const embed = new EmbedBuilder() .setTitle("💰 Daily Reward Claimed!") - .setDescription(`You claimed ** ${ result.amount }** Astral Units!`) + .setDescription(`You claimed ** ${result.amount}** Astral Units!`) .addFields( - { name: "Streak", value: `🔥 ${ result.streak } days`, inline: true }, - { name: "Next Reward", value: `< t:${ Math.floor(result.nextReadyAt.getTime() / 1000) }: R > `, inline: true } + { name: "Streak", value: `🔥 ${result.streak} days`, inline: true }, + { name: "Next Reward", value: `< t:${Math.floor(result.nextReadyAt.getTime() / 1000)}: R > `, inline: true } ) .setColor("Gold") .setTimestamp(); @@ -34,5 +34,4 @@ export const daily = createCommand({ } } } -}); -``` +}); \ No newline at end of file diff --git a/src/commands/economy/pay.ts b/src/commands/economy/pay.ts index d4f78b9..3085b6f 100644 --- a/src/commands/economy/pay.ts +++ b/src/commands/economy/pay.ts @@ -1,4 +1,4 @@ -```typescript + import { createCommand } from "@/lib/utils"; import { SlashCommandBuilder, EmbedBuilder, MessageFlags } from "discord.js"; import { economyService } from "@/modules/economy/economy.service"; @@ -36,7 +36,7 @@ export const pay = createCommand({ const receiverId = targetUser.id; if (amount < config.economy.transfers.minAmount) { - await interaction.reply({ embeds: [createErrorEmbed(`Amount must be at least ${ config.economy.transfers.minAmount }.`)], flags: MessageFlags.Ephemeral }); + await interaction.reply({ embeds: [createErrorEmbed(`Amount must be at least ${config.economy.transfers.minAmount}.`)], flags: MessageFlags.Ephemeral }); return; } @@ -51,7 +51,7 @@ export const pay = createCommand({ const embed = new EmbedBuilder() .setTitle("💸 Transfer Successful") - .setDescription(`Successfully sent ** ${ amount }** Astral Units to < @${ targetUser.id }>.`) + .setDescription(`Successfully sent ** ${amount}** Astral Units to < @${targetUser.id}>.`) .setColor("Green") .setTimestamp(); @@ -67,4 +67,3 @@ export const pay = createCommand({ } } }); -```