Updated all files to new interfaces
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user