Moved to using date locale method

This commit is contained in:
2024-09-26 15:25:52 +02:00
parent 7ff5ad5d9c
commit f0be3655a7
3 changed files with 3 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
import { devMessage, embedColor } from "config/options.js"
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
import { ChatInputCommandInteraction } from "discord.js"
import { IGuildData } from "interfaces"
import { getGuild, getIGN, getPlayer, getUUID } from "utils/Hypixel.js"
import { redis } from "utils/Illegitimate.js"
@@ -12,16 +12,6 @@ export default async function guildTop(interaction: ChatInputCommandInteraction)
let amount = interaction.options.getNumber("amount") || 10
let guild: IGuildData | null
if (interaction.channel!.type === ChannelType.DM) {
interaction.editReply({
embeds: [{
description: "You can't use this command in DMs!",
color: embedColor
}]
})
return
}
if (type === "ign") {
await interaction.editReply({
embeds: [{