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,6 +1,6 @@
import { RESTPostAPIChatInputApplicationCommandsJSONBody, RESTPostAPIContextMenuApplicationCommandsJSONBody } from "discord.js"
import fs from "fs"
import { ICommand, IContextMenu } from "~/interfaces"
import { ICommand, IContextMenu } from "~/typings"
import { ExtendedClient } from "./Client.js"
import env from "./Env.js"
import { log } from "./Logger.js"

View File

@@ -1,5 +1,5 @@
import { Client, Collection, GatewayIntentBits, Partials } from "discord.js"
import { IAutocomplete, IButton, ICommand, IContextMenu, IModal } from "~/interfaces"
import { IAutocomplete, IButton, ICommand, IContextMenu, IModal } from "~/typings"
import autoDeployCommands from "./Autodeploy.js"
import env from "./Env.js"
import { log } from "./Logger.js"

View File

@@ -2,7 +2,7 @@ import { Events } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { IAutocomplete } from "~/interfaces"
import { IAutocomplete } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
type FileType = "js" | "ts"

View File

@@ -2,7 +2,7 @@ import { Events } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { IButton } from "~/interfaces"
import { IButton } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
type FileType = "js" | "ts"

View File

@@ -2,7 +2,7 @@ import { Events } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { ICommand } from "~/interfaces"
import { ICommand } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
type FileType = "js" | "ts"

View File

@@ -2,7 +2,7 @@ import { Events } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { IContextMenu } from "~/interfaces"
import { IContextMenu } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
type FileType = "js" | "ts"

View File

@@ -1,7 +1,7 @@
import { CronJob } from "cron"
import fs from "fs"
import path from "path"
import { ICron } from "~/interfaces"
import { ICron } from "~/typings"
type FileType = "js" | "ts"
export default async function loadCronEvents(ft: FileType) {

View File

@@ -2,7 +2,7 @@ import { Events } from "discord.js"
import fs from "fs"
import path from "path"
import { embedColor } from "~/config/options.js"
import { IModal } from "~/interfaces"
import { IModal } from "~/typings"
import { ExtendedClient as Client } from "~/utils/Client.js"
import logToChannel from "~/utils/Functions/logtochannel.js"
type FileType = "js" | "ts"

View File

@@ -1,6 +1,6 @@
import axios from "axios"
import { IPlayer, IPlayerData } from "~/interfaces"
import { IGuild, IGuildData } from "~/interfaces"
import { IPlayer, IPlayerData } from "~/typings"
import { IGuild, IGuildData } from "~/typings"
import env from "~/utils/Env.js"
const apikey = env.prod.hypixelapikey
const mojang = "https://api.mojang.com/users/profiles/minecraft/"