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,5 +1,5 @@
import { SlashCommandBuilder } from "discord.js"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import search from "./anime/search"
import { devMessage, embedColor } from "config/options"
@@ -45,4 +45,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,7 +1,7 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember, } from "discord.js"
import { admin, helper } from "config/roles"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
export = {
@@ -136,4 +136,4 @@ export = {
}]
})
},
} as Command
} as ICommand

View File

@@ -1,5 +1,5 @@
import { SlashCommandBuilder } from "discord.js"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import { embedColor, devMessage } from "config/options"
import os from "os"
import { execSync } from "child_process"
@@ -74,4 +74,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -2,7 +2,7 @@ import { SlashCommandBuilder } from "discord.js"
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
import { embedColor, devMessage } from "config/options"
import { hypixelLevel, bedwarsLevel, skywarsLevel, getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "check",
@@ -234,4 +234,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits, TextChannel, channelMention, userMention } from "discord.js"
import { embedColor } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
export = {
@@ -77,4 +77,4 @@ export = {
})
})
}
} as Command
} as ICommand

View File

@@ -2,7 +2,7 @@ import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
import { embedColor } from "config/options"
import settings from "schemas/settingsSchema"
import mongoose from "mongoose"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "config",
@@ -65,4 +65,4 @@ export = {
})
}
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import ban from "./counting/ban"
import unban from "./counting/unban"
@@ -63,4 +63,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,7 +1,7 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
import { embedColor, devMessage } from "config/options"
import verify from "schemas/verifySchema"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import roleManage from "utils/functions/rolesmanage"
import logToChannel from "utils/functions/logtochannel"
import { getIGN } from "utils/Hypixel"
@@ -82,4 +82,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -2,7 +2,7 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } fr
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel"
import { hypixelGuildID, embedColor, devMessage } from "config/options"
import verify from "schemas/verifySchema"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import roleManage from "utils/functions/rolesmanage"
import { waitingListRole } from "config/roles"
@@ -160,4 +160,4 @@ export = {
})
}
}
} as Command
} as ICommand

View File

@@ -4,7 +4,7 @@ import { embedColor, hypixelGuildID, devMessage } from "config/options"
import verify from "schemas/verifySchema"
import mongoose from "mongoose"
import roleManage from "utils/functions/rolesmanage"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
export = {
@@ -204,4 +204,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import guildMember from "./guild/member"
import guildInfo from "./guild/info"
import guildTop from "./guild/top"
@@ -106,4 +106,4 @@ export = {
}]
})
}
} as Command
} as ICommand

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({

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "help",
@@ -71,4 +71,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
import { embedColor, devMessage, instructionsgif } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "instructions",
@@ -36,4 +36,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,7 +1,7 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
import { admin, helper } from "config/roles"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
export = {
@@ -109,4 +109,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,5 +1,5 @@
import { PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import play from "./music/play"
import leave from "./music/leave"
import queue from "./music/queue"
@@ -114,4 +114,4 @@ export = {
return
}
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "ping",
@@ -27,4 +27,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, User } from "discord.js"
import { embedColor } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import env from "utils/Env"
export = {
@@ -38,4 +38,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,7 +1,7 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention } from "discord.js"
import { embedColor, devMessage } from "config/options"
import waitinglistSchema from "schemas/waitinglistSchema"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
export = {
@@ -85,4 +85,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,7 +1,7 @@
import { SlashCommandBuilder } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "reqs",
@@ -48,4 +48,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "send",
@@ -58,4 +58,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, GuildMember } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
export = {
@@ -77,4 +77,4 @@ export = {
ephemeral: true
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits, ButtonBuilder, ActionRowBuilder, ButtonStyle, ChannelType, TextChannel } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "setup",
@@ -153,4 +153,4 @@ export = {
ephemeral: true
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits, ChannelType, TextChannel, channelMention, userMention } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
export = {
@@ -83,4 +83,4 @@ export = {
})
await channel.setRateLimitPerUser(seconds)
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { GuildMember, SlashCommandBuilder } from "discord.js"
import snipeCacheSchema from "schemas/snipeCacheSchema"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import { embedColor } from "config/options"
import { SnipeCache } from "typings"
@@ -71,4 +71,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import help from "./staff/help"
import beast from "./staff/beast"
import updateAll from "./staff/updateall"
@@ -90,4 +90,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,7 +1,7 @@
import { embedColor, hypixelGuildID } from "config/options"
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
import verify from "schemas/verifySchema"
import { GuildData } from "interfaces"
import { IGuildData } from "interfaces"
import env from "utils/Env"
import { getGuild } from "utils/Hypixel"
import roleManage from "utils/functions/rolesmanage"
@@ -30,7 +30,7 @@ export default async function removeGuildRoles(interaction: ChatInputCommandInte
})
)
const guildData = (await getGuild(hypixelGuildID, "id")) as GuildData
const guildData = (await getGuild(hypixelGuildID, "id")) as IGuildData
const hypixelGuildMembers = guildData.members.map(gmember => gmember.uuid)

View File

@@ -6,7 +6,7 @@ import roleManage from "utils/functions/rolesmanage"
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
import env from "utils/Env"
import { getGuild } from "utils/Hypixel"
import { GuildData } from "interfaces"
import { IGuildData } from "interfaces"
export default async function updateAll(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply()
@@ -32,7 +32,7 @@ export default async function updateAll(interaction: ChatInputCommandInteraction
})
)
const guildData = (await getGuild(hypixelGuildID, "id")) as GuildData
const guildData = (await getGuild(hypixelGuildID, "id")) as IGuildData
const hypixelGuildMembers = guildData.members.map(gmember => {
return {

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, ChatInputCommandInteraction, GuildMember } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import ms from "ms"
import logToChannel from "utils/functions/logtochannel"
@@ -161,4 +161,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,6 +1,6 @@
import { SlashCommandBuilder, PermissionFlagsBits, userMention, User } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import logToChannel from "utils/functions/logtochannel"
export = {
@@ -101,4 +101,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -3,7 +3,7 @@ import { getGuild, getIGN, getHeadURL } from "utils/Hypixel"
import verify from "schemas/verifySchema"
import { embedColor, hypixelGuildID, devMessage } from "config/options"
import roleManage from "utils/functions/rolesmanage"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import { waitingListRole } from "config/roles"
export = {
@@ -143,4 +143,4 @@ export = {
})
}
}
} as Command
} as ICommand

View File

@@ -1,7 +1,7 @@
import { SlashCommandBuilder } from "discord.js"
import { embedColor, devMessage } from "config/options"
import { getUUID, getIGN, getHeadURL, formatUuid } from "utils/Hypixel"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "uuid",
@@ -58,4 +58,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -3,10 +3,10 @@ import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
import { embedColor, hypixelGuildID, devMessage } from "config/options"
import mongoose from "mongoose"
import roleManage from "utils/functions/rolesmanage"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import verify from "schemas/verifySchema"
import { PlayerData } from "interfaces"
import { GuildData } from "interfaces"
import { IPlayerData } from "interfaces"
import { IGuildData } from "interfaces"
export = {
name: "verify",
@@ -75,7 +75,7 @@ export = {
})
const head = await getHeadURL(ign)
const player = (await getPlayer(uuid)) as PlayerData
const player = (await getPlayer(uuid)) as IPlayerData
if (!player) {
interaction.editReply({
embeds: [{
@@ -130,7 +130,7 @@ export = {
}]
})
const guild = (await getGuild(uuid)) as GuildData | null
const guild = (await getGuild(uuid)) as IGuildData | null
let guildID: string | null
if (!guild) {
guildID = null
@@ -198,4 +198,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -1,5 +1,5 @@
import { SlashCommandBuilder, userMention } from "discord.js"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
import { embedColor, devMessage } from "config/options"
import verify from "schemas/verifySchema"
import { getIGN, getHeadURL } from "utils/Hypixel"
@@ -50,4 +50,4 @@ export = {
}]
})
}
} as Command
} as ICommand

View File

@@ -2,7 +2,7 @@ import { SlashCommandBuilder, PermissionFlagsBits, userMention } from "discord.j
import { getIGN, getHeadURL } from "utils/Hypixel"
import { embedColor, devMessage } from "config/options"
import verify from "schemas/verifySchema"
import { Command } from "interfaces"
import { ICommand } from "interfaces"
export = {
name: "whois",
@@ -51,4 +51,4 @@ export = {
}]
})
}
} as Command
} as ICommand