Updated type system

This commit is contained in:
2025-01-12 19:14:08 +01:00
parent 69061ba41d
commit 4f1ea148c5
88 changed files with 110 additions and 118 deletions

View File

@@ -1,7 +1,7 @@
import { anilist } from "anilist"
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
export default {
name: "anime",

View File

@@ -1,7 +1,7 @@
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { admin, helper } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
export default {

View File

@@ -4,7 +4,7 @@ import { createRequire } from "node:module"
import os from "os"
import prettyMs from "pretty-ms"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
const require = createRequire(import.meta.url)
const { dependencies, devDependencies } = require("../../package.json")

View File

@@ -1,7 +1,7 @@
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "~/utils/Hypixel.js"
export default {

View File

@@ -1,6 +1,6 @@
import { channelMention, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js"
import { embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
export default {

View File

@@ -1,7 +1,7 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { addSetting, getSetting, updateSetting } from "src/drizzle/functions.js"
import { embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
export default {
name: "config",

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import ban from "./counting/ban.js"
import unban from "./counting/unban.js"

View File

@@ -1,7 +1,7 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import { getHeadURL, getIGN, getUUID } from "~/utils/Hypixel.js"
export default {

View File

@@ -1,7 +1,7 @@
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { getVerify, removeVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getIGN } from "~/utils/Hypixel.js"

View File

@@ -2,7 +2,7 @@ import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandB
import { getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { waitingListRole } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import getGuildRank from "~/utils/Functions/guildrank.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"

View File

@@ -1,7 +1,7 @@
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { addVerify, getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import getGuildRank from "~/utils/Functions/guildrank.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
import roleManage from "~/utils/Functions/rolesmanage.js"

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import guildInfo from "./guild/info.js"
import guildMember from "./guild/member.js"
import guildTop from "./guild/top.js"

View File

@@ -1,6 +1,6 @@
import { ChatInputCommandInteraction } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { IGuildData } from "~/interfaces"
import { IGuildData } from "~/typings"
import { dateTimeFormatter, numberFormatter } from "~/utils/Functions/intlFormaters.js"
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "~/utils/Hypixel.js"

View File

@@ -1,6 +1,6 @@
import { ChatInputCommandInteraction } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { IGuildData } from "~/interfaces"
import { IGuildData } from "~/typings"
import { numberFormatter } from "~/utils/Functions/intlFormaters.js"
import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel.js"
import { redis } from "~/utils/Illegitimate.js"

View File

@@ -1,6 +1,6 @@
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
export default {
name: "help",

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor, instructionsgif } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
export default {
name: "instructions",

View File

@@ -1,7 +1,7 @@
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { admin, helper } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
export default {

View File

@@ -1,5 +1,5 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import leave from "./music/leave.js"
import nowplaying from "./music/nowplaying.js"
import pause from "./music/pause.js"

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
export default {
name: "ping",

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, SlashCommandBuilder, User } from "discord.js"
import { embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import env from "~/utils/Env.js"
export default {

View File

@@ -2,7 +2,7 @@ import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandB
import { getWaitingList, removeWaitingList } from "src/drizzle/functions.js"
import { devMessage, embedColor } from "~/config/options.js"
import { waitingListRole } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
export default {

View File

@@ -1,7 +1,7 @@
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
export default {
name: "reqs",

View File

@@ -1,6 +1,6 @@
import { ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
export default {
name: "send",

View File

@@ -1,6 +1,6 @@
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
export default {

View File

@@ -9,7 +9,7 @@ import {
TextChannel
} from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
export default {
name: "setup",

View File

@@ -1,6 +1,6 @@
import { channelMention, ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
export default {

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import beast from "./staff/beast.js"
import help from "./staff/help.js"
import prune from "./staff/prune.js"

View File

@@ -1,7 +1,7 @@
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
import { getVerifies } from "src/drizzle/functions.js"
import { embedColor, hypixelGuildID } from "~/config/options.js"
import { IGuildData } from "~/interfaces"
import { IGuildData } from "~/typings"
import env from "~/utils/Env.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild } from "~/utils/Hypixel.js"

View File

@@ -1,7 +1,7 @@
import { ChannelType, ChatInputCommandInteraction, GuildMember } from "discord.js"
import { getVerifies } from "src/drizzle/functions.js"
import { embedColor, hypixelGuildID } from "~/config/options.js"
import { IGuildData } from "~/interfaces"
import { IGuildData } from "~/typings"
import env from "~/utils/Env.js"
import getGuildRank from "~/utils/Functions/guildrank.js"
import roleManage from "~/utils/Functions/rolesmanage.js"

View File

@@ -2,7 +2,7 @@ import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandB
import ms from "ms"
import prettyMs from "pretty-ms"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
export default {

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, User, userMention } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import logToChannel from "~/utils/Functions/logtochannel.js"
export default {

View File

@@ -2,7 +2,7 @@ import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discor
import { getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { waitingListRole } from "~/config/roles.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import getGuildRank from "~/utils/Functions/guildrank.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"

View File

@@ -1,6 +1,6 @@
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import { formatUuid, getHeadURL, getIGN, getUUID } from "~/utils/Hypixel.js"
export default {

View File

@@ -1,9 +1,9 @@
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
import { addVerify, getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { IPlayerData } from "~/interfaces"
import { IGuildData } from "~/interfaces"
import { ICommand } from "~/typings"
import { IPlayerData } from "~/typings"
import { IGuildData } from "~/typings"
import getGuildRank from "~/utils/Functions/guildrank.js"
import roleManage from "~/utils/Functions/rolesmanage.js"
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"

View File

@@ -1,7 +1,7 @@
import { InteractionContextType, SlashCommandBuilder, userMention } from "discord.js"
import { getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import { getHeadURL, getIGN } from "~/utils/Hypixel.js"
export default {

View File

@@ -1,7 +1,7 @@
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
import { getVerify } from "src/drizzle/functions.js"
import { devMessage, embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import { getHeadURL, getIGN } from "~/utils/Hypixel.js"
export default {