Updated all files to new interfaces

This commit is contained in:
2024-02-16 16:03:04 +01:00
parent 137401630e
commit 769c3d12ed
77 changed files with 168 additions and 168 deletions

View File

@@ -1,14 +1,14 @@
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel"
import { embedColor, devMessage } from "config/options"
import { ChatInputCommandInteraction } from "discord.js"
import { GuildData } from "interfaces"
import { IGuildData } from "interfaces"
export default async function guildInfo(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply()
const query = interaction.options.getString("query")!
const type = interaction.options.getString("type") || "ign"
let guild: GuildData | null
let guild: IGuildData | null
if (type === "ign") {
await interaction.editReply({

View File

@@ -1,7 +1,7 @@
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel"
import { embedColor, devMessage } from "config/options"
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
import { GuildData } from "interfaces"
import { IGuildData } from "interfaces"
import { redis } from "utils/Illegitimate"
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
@@ -10,7 +10,7 @@ export default async function guildTop(interaction: ChatInputCommandInteraction)
const query = interaction.options.getString("query")!
const type = interaction.options.getString("type") || "ign"
let amount = interaction.options.getNumber("amount") || 10
let guild: GuildData | null
let guild: IGuildData | null
if (interaction.channel!.type === ChannelType.DM) {
interaction.editReply({