Changed import alias
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { anilist } from "anilist"
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
|
||||
export default {
|
||||
name: "anime",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { admin, helper } from "config/roles.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { admin, helper } from "~/config/roles.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
name: "ban",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { execSync } from "child_process"
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
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"
|
||||
|
||||
const require = createRequire(import.meta.url)
|
||||
const { dependencies, devDependencies } = require("../../package.json")
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "config/reqs.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "utils/Hypixel.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 { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "check",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { channelMention, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
name: "clear",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||
import { eq } from "drizzle-orm"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { settings } from "src/drizzle/schema.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
|
||||
export default {
|
||||
name: "config",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import ban from "./counting/ban.js"
|
||||
import unban from "./counting/unban.js"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { countingBanned } from "config/roles.js"
|
||||
import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { countingBanned } from "~/config/roles.js"
|
||||
|
||||
export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
const member = interaction.options.getMember("user")! as GuildMember
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { countingBanned } from "config/roles.js"
|
||||
import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { countingBanned } from "~/config/roles.js"
|
||||
|
||||
export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
const member = interaction.options.getMember("user")! as GuildMember
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { getHeadURL, getIGN, getUUID } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import { getHeadURL, getIGN, getUUID } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "find",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { eq } from "drizzle-orm"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { verifies } from "src/drizzle/schema.js"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { getIGN } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
import roleManage from "~/utils/functions/rolesmanage.js"
|
||||
import { getIGN } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "forceunverify",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
|
||||
import { waitingListRole } from "config/roles.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { waitingListRole } from "~/config/roles.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import roleManage from "~/utils/functions/rolesmanage.js"
|
||||
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "forceupdate",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { verifies } from "src/drizzle/schema.js"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
import roleManage from "~/utils/functions/rolesmanage.js"
|
||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "forceverify",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import guildInfo from "./guild/info.js"
|
||||
import guildMember from "./guild/member.js"
|
||||
import guildTop from "./guild/top.js"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { IGuildData } from "~/interfaces"
|
||||
import { getGuild, getIGN, getPlayer, getUUID, guildLevel } from "~/utils/Hypixel.js"
|
||||
|
||||
export default async function guildInfo(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
||||
|
||||
export default async function guildMember(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
import { getGuild, getIGN, getPlayer, getUUID } from "utils/Hypixel.js"
|
||||
import { redis } from "utils/Illegitimate.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { IGuildData } from "~/interfaces"
|
||||
import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
||||
import { redis } from "~/utils/Illegitimate.js"
|
||||
|
||||
export default async function guildTop(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType, InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
|
||||
export default {
|
||||
name: "help",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor, instructionsgif } from "config/options.js"
|
||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor, instructionsgif } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
|
||||
export default {
|
||||
name: "instructions",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { admin, helper } from "config/roles.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { admin, helper } from "~/config/roles.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
name: "kick",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import leave from "./music/leave.js"
|
||||
import nowplaying from "./music/nowplaying.js"
|
||||
import pause from "./music/pause.js"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
|
||||
export default async function leave(interaction: ChatInputCommandInteraction) {
|
||||
const player = useMainPlayer()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
|
||||
export default async function nowplaying(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
|
||||
export default async function pause(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
|
||||
export default async function play(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
|
||||
export default async function queue(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
|
||||
export default async function skip(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
|
||||
export default async function pause(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { useMainPlayer } from "discord-player"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
|
||||
export default async function volume(interaction: ChatInputCommandInteraction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
|
||||
export default {
|
||||
name: "ping",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { embedColor } from "config/options.js"
|
||||
import { InteractionContextType, SlashCommandBuilder, User } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import env from "utils/Env.js"
|
||||
import { embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import env from "~/utils/Env.js"
|
||||
|
||||
export default {
|
||||
name: "pp",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { waitingListRole } from "config/roles.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { eq } from "drizzle-orm"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { waitingLists } from "src/drizzle/schema.js"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { waitingListRole } from "~/config/roles.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
name: "remove",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "config/reqs.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { bwfkdr, bwstars, bwwins, duelswins, duelswlr, swkdr, swstars } from "~/config/reqs.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
|
||||
export default {
|
||||
name: "reqs",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
|
||||
export default {
|
||||
name: "send",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
name: "setnick",
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import {
|
||||
ActionRowBuilder,
|
||||
ButtonBuilder,
|
||||
@@ -9,7 +8,8 @@ import {
|
||||
SlashCommandBuilder,
|
||||
TextChannel
|
||||
} from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
|
||||
export default {
|
||||
name: "setup",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { channelMention, ChannelType, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, TextChannel, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
name: "slowmode",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import beast from "./staff/beast.js"
|
||||
import help from "./staff/help.js"
|
||||
import prune from "./staff/prune.js"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { beastbwfkdr, beastbwstars, beastduelswins, beastswkdr, beastswstars, bwwins, duelswlr } from "config/reqs.js"
|
||||
import { ChatInputCommandInteraction } from "discord.js"
|
||||
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { beastbwfkdr, beastbwstars, beastduelswins, beastswkdr, beastswstars, bwwins, duelswlr } from "~/config/reqs.js"
|
||||
import { bedwarsLevel, getGuild, getHeadURL, getPlayer, getUUID, hypixelLevel, skywarsLevel } from "~/utils/Hypixel.js"
|
||||
|
||||
export default async function beast(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js"
|
||||
import { ExtendedClient as Client } from "utils/Client.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ExtendedClient as Client } from "~/utils/Client.js"
|
||||
|
||||
export default async function help(interaction: ChatInputCommandInteraction, client: Client): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, ChatInputCommandInteraction, ComponentType } from "discord.js"
|
||||
import env from "utils/Env.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import env from "~/utils/Env.js"
|
||||
|
||||
export default async function prune(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { embedColor, hypixelGuildID } from "config/options.js"
|
||||
import { ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import env from "utils/Env.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { getGuild } from "utils/Hypixel.js"
|
||||
import { embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { IGuildData } from "~/interfaces"
|
||||
import env from "~/utils/Env.js"
|
||||
import roleManage from "~/utils/functions/rolesmanage.js"
|
||||
import { getGuild } from "~/utils/Hypixel.js"
|
||||
|
||||
export default async function removeGuildRoles(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { embedColor, hypixelGuildID } from "config/options.js"
|
||||
import { ChannelType, ChatInputCommandInteraction, GuildMember } from "discord.js"
|
||||
import { IGuildData } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import env from "utils/Env.js"
|
||||
import { color } from "utils/functions/colors.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { getGuild, getIGN } from "utils/Hypixel.js"
|
||||
import { embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { IGuildData } from "~/interfaces"
|
||||
import env from "~/utils/Env.js"
|
||||
import { color } from "~/utils/functions/colors.js"
|
||||
import roleManage from "~/utils/functions/rolesmanage.js"
|
||||
import { getGuild, getIGN } from "~/utils/Hypixel.js"
|
||||
|
||||
export default async function updateAll(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { GuildMember, InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import ms from "ms"
|
||||
import prettyMs from "pretty-ms"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
name: "timeout",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, User, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import logToChannel from "utils/functions/logtochannel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import logToChannel from "~/utils/functions/logtochannel.js"
|
||||
|
||||
export default {
|
||||
name: "unban",
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
|
||||
import { waitingListRole } from "config/roles.js"
|
||||
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { getGuild, getHeadURL, getIGN } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { waitingListRole } from "~/config/roles.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import roleManage from "~/utils/functions/rolesmanage.js"
|
||||
import { getGuild, getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "update",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { formatUuid, getHeadURL, getIGN, getUUID } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import { formatUuid, getHeadURL, getIGN, getUUID } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "uuid",
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { devMessage, embedColor, hypixelGuildID } from "config/options.js"
|
||||
import { GuildMember, InteractionContextType, SlashCommandBuilder } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import { IPlayerData } from "interfaces"
|
||||
import { IGuildData } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { verifies } from "src/drizzle/schema.js"
|
||||
import roleManage from "utils/functions/rolesmanage.js"
|
||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor, hypixelGuildID } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import { IPlayerData } from "~/interfaces"
|
||||
import { IGuildData } from "~/interfaces"
|
||||
import roleManage from "~/utils/functions/rolesmanage.js"
|
||||
import { getGuild, getHeadURL, getPlayer, getUUID } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "verify",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { getHeadURL, getIGN } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import { getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "whoami",
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { devMessage, embedColor } from "config/options.js"
|
||||
import { InteractionContextType, PermissionFlagsBits, SlashCommandBuilder, userMention } from "discord.js"
|
||||
import { ICommand } from "interfaces"
|
||||
import db from "src/drizzle/db.js"
|
||||
import { getHeadURL, getIGN } from "utils/Hypixel.js"
|
||||
import { devMessage, embedColor } from "~/config/options.js"
|
||||
import { ICommand } from "~/interfaces"
|
||||
import { getHeadURL, getIGN } from "~/utils/Hypixel.js"
|
||||
|
||||
export default {
|
||||
name: "whois",
|
||||
|
||||
Reference in New Issue
Block a user