Updated type system
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user