diff --git a/src/commands-contextmenu/congratsmessage.ts b/src/commands-contextmenu/congratsmessage.ts index 0a816fe..48c12c7 100644 --- a/src/commands-contextmenu/congratsmessage.ts +++ b/src/commands-contextmenu/congratsmessage.ts @@ -1,5 +1,5 @@ import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits, userMention } from "discord.js" -import { ContextMenu } from "interfaces" +import { IContextMenu } from "interfaces" export = { name: "congratsmessage", @@ -37,4 +37,4 @@ export = { ephemeral: true }) } -} as ContextMenu +} as IContextMenu diff --git a/src/commands-contextmenu/resetnick.ts b/src/commands-contextmenu/resetnick.ts index 63e35e2..28a8177 100644 --- a/src/commands-contextmenu/resetnick.ts +++ b/src/commands-contextmenu/resetnick.ts @@ -1,5 +1,5 @@ import { ContextMenuCommandBuilder, ApplicationCommandType, PermissionFlagsBits } from "discord.js" -import { ContextMenu } from "interfaces" +import { IContextMenu } from "interfaces" export = { name: "resetnick", @@ -48,4 +48,4 @@ export = { ephemeral: true }) } -} as ContextMenu +} as IContextMenu diff --git a/src/commands-contextmenu/updateuser.ts b/src/commands-contextmenu/updateuser.ts index a63b435..afcffb1 100644 --- a/src/commands-contextmenu/updateuser.ts +++ b/src/commands-contextmenu/updateuser.ts @@ -1,6 +1,6 @@ import { ApplicationCommandType, ContextMenuCommandBuilder, PermissionFlagsBits, userMention } from "discord.js" import { embedColor, devMessage, hypixelGuildID } from "config/options" -import { ContextMenu } from "interfaces" +import { IContextMenu } from "interfaces" import verifySchema from "schemas/verifySchema" import { getGuild, getHeadURL, getIGN } from "utils/Hypixel" import roleManage from "utils/functions/rolesmanage" @@ -154,4 +154,4 @@ export = { }) } } -} as ContextMenu +} as IContextMenu diff --git a/src/commands/anime.ts b/src/commands/anime.ts index ac4db09..ad08231 100644 --- a/src/commands/anime.ts +++ b/src/commands/anime.ts @@ -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 diff --git a/src/commands/ban.ts b/src/commands/ban.ts index 360b0cf..f5ed9ca 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -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 diff --git a/src/commands/botinfo.ts b/src/commands/botinfo.ts index 500ab9b..998c105 100644 --- a/src/commands/botinfo.ts +++ b/src/commands/botinfo.ts @@ -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 diff --git a/src/commands/check.ts b/src/commands/check.ts index 78f5264..7ca3236 100644 --- a/src/commands/check.ts +++ b/src/commands/check.ts @@ -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 diff --git a/src/commands/clear.ts b/src/commands/clear.ts index 83bd861..2983a34 100644 --- a/src/commands/clear.ts +++ b/src/commands/clear.ts @@ -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 diff --git a/src/commands/config.ts b/src/commands/config.ts index 7922af7..09c0b0c 100644 --- a/src/commands/config.ts +++ b/src/commands/config.ts @@ -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 diff --git a/src/commands/counting.ts b/src/commands/counting.ts index d42d434..b1a4996 100644 --- a/src/commands/counting.ts +++ b/src/commands/counting.ts @@ -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 diff --git a/src/commands/forceunverify.ts b/src/commands/forceunverify.ts index c50127a..446d884 100644 --- a/src/commands/forceunverify.ts +++ b/src/commands/forceunverify.ts @@ -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 diff --git a/src/commands/forceupdate.ts b/src/commands/forceupdate.ts index f623532..fccd866 100644 --- a/src/commands/forceupdate.ts +++ b/src/commands/forceupdate.ts @@ -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 diff --git a/src/commands/forceverify.ts b/src/commands/forceverify.ts index d623733..81490ff 100644 --- a/src/commands/forceverify.ts +++ b/src/commands/forceverify.ts @@ -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 diff --git a/src/commands/guild.ts b/src/commands/guild.ts index eb843f9..7576375 100644 --- a/src/commands/guild.ts +++ b/src/commands/guild.ts @@ -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 diff --git a/src/commands/guild/info.ts b/src/commands/guild/info.ts index b7eba2f..a039ce4 100644 --- a/src/commands/guild/info.ts +++ b/src/commands/guild/info.ts @@ -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 { 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({ diff --git a/src/commands/guild/top.ts b/src/commands/guild/top.ts index 3851f9c..d672dab 100644 --- a/src/commands/guild/top.ts +++ b/src/commands/guild/top.ts @@ -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 { @@ -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({ diff --git a/src/commands/help.ts b/src/commands/help.ts index 6154aa1..ed10d7d 100644 --- a/src/commands/help.ts +++ b/src/commands/help.ts @@ -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 diff --git a/src/commands/instructions.ts b/src/commands/instructions.ts index 1cc9e11..9f0dce8 100644 --- a/src/commands/instructions.ts +++ b/src/commands/instructions.ts @@ -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 diff --git a/src/commands/kick.ts b/src/commands/kick.ts index 399dfb3..2336c3d 100644 --- a/src/commands/kick.ts +++ b/src/commands/kick.ts @@ -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 diff --git a/src/commands/music.ts b/src/commands/music.ts index e4b4ef8..d0fdab8 100644 --- a/src/commands/music.ts +++ b/src/commands/music.ts @@ -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 \ No newline at end of file +} as ICommand \ No newline at end of file diff --git a/src/commands/ping.ts b/src/commands/ping.ts index a203493..cd022f6 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -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 diff --git a/src/commands/pp.ts b/src/commands/pp.ts index 05bc3d7..b949f60 100644 --- a/src/commands/pp.ts +++ b/src/commands/pp.ts @@ -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 diff --git a/src/commands/remove.ts b/src/commands/remove.ts index 4bd910a..4767d8b 100644 --- a/src/commands/remove.ts +++ b/src/commands/remove.ts @@ -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 diff --git a/src/commands/reqs.ts b/src/commands/reqs.ts index 0c9a25b..c9a4f9f 100644 --- a/src/commands/reqs.ts +++ b/src/commands/reqs.ts @@ -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 diff --git a/src/commands/send.ts b/src/commands/send.ts index d096ad2..efe55ac 100644 --- a/src/commands/send.ts +++ b/src/commands/send.ts @@ -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 diff --git a/src/commands/setnick.ts b/src/commands/setnick.ts index 33ef2db..538191f 100644 --- a/src/commands/setnick.ts +++ b/src/commands/setnick.ts @@ -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 diff --git a/src/commands/setup.ts b/src/commands/setup.ts index 97e6d3e..8e2073d 100644 --- a/src/commands/setup.ts +++ b/src/commands/setup.ts @@ -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 diff --git a/src/commands/slowmode.ts b/src/commands/slowmode.ts index 1401370..a478517 100644 --- a/src/commands/slowmode.ts +++ b/src/commands/slowmode.ts @@ -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 diff --git a/src/commands/snipe.ts b/src/commands/snipe.ts index 40b94e7..19aeb85 100644 --- a/src/commands/snipe.ts +++ b/src/commands/snipe.ts @@ -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 diff --git a/src/commands/staff.ts b/src/commands/staff.ts index 4f3c621..5625bde 100644 --- a/src/commands/staff.ts +++ b/src/commands/staff.ts @@ -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 diff --git a/src/commands/staff/removeguildroles.ts b/src/commands/staff/removeguildroles.ts index d693256..250aa75 100644 --- a/src/commands/staff/removeguildroles.ts +++ b/src/commands/staff/removeguildroles.ts @@ -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) diff --git a/src/commands/staff/updateall.ts b/src/commands/staff/updateall.ts index 9fd822f..b531df6 100644 --- a/src/commands/staff/updateall.ts +++ b/src/commands/staff/updateall.ts @@ -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 { 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 { diff --git a/src/commands/timeout.ts b/src/commands/timeout.ts index 487b947..dad6e3d 100644 --- a/src/commands/timeout.ts +++ b/src/commands/timeout.ts @@ -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 diff --git a/src/commands/unban.ts b/src/commands/unban.ts index 87420af..67135d1 100644 --- a/src/commands/unban.ts +++ b/src/commands/unban.ts @@ -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 diff --git a/src/commands/update.ts b/src/commands/update.ts index 2b97eb2..b3bfa13 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -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 diff --git a/src/commands/uuid.ts b/src/commands/uuid.ts index c9c9349..2eb4190 100644 --- a/src/commands/uuid.ts +++ b/src/commands/uuid.ts @@ -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 diff --git a/src/commands/verify.ts b/src/commands/verify.ts index 2f493f2..7256747 100644 --- a/src/commands/verify.ts +++ b/src/commands/verify.ts @@ -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 diff --git a/src/commands/whoami.ts b/src/commands/whoami.ts index 9e49e55..7f724e1 100644 --- a/src/commands/whoami.ts +++ b/src/commands/whoami.ts @@ -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 diff --git a/src/commands/whois.ts b/src/commands/whois.ts index dde2c10..8002a56 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -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 diff --git a/src/components/autocomplete/music.ts b/src/components/autocomplete/music.ts index bbdd851..1d76160 100644 --- a/src/components/autocomplete/music.ts +++ b/src/components/autocomplete/music.ts @@ -1,5 +1,5 @@ import { QueryType, useMainPlayer } from "discord-player" -import { Autocomplete } from "interfaces" +import { IAutocomplete } from "interfaces" export = { name: "music", @@ -29,4 +29,4 @@ export = { await interaction.respond(results.slice(0, 25)).catch() } -} as Autocomplete \ No newline at end of file +} as IAutocomplete \ No newline at end of file diff --git a/src/components/autocomplete/unban.ts b/src/components/autocomplete/unban.ts index 192f834..3df7003 100644 --- a/src/components/autocomplete/unban.ts +++ b/src/components/autocomplete/unban.ts @@ -1,4 +1,4 @@ -import { Autocomplete } from "interfaces" +import { IAutocomplete } from "interfaces" export = { name: "unban", @@ -28,4 +28,4 @@ export = { console.log(err) }) } -} as Autocomplete +} as IAutocomplete diff --git a/src/components/buttons/checkstats.ts b/src/components/buttons/checkstats.ts index 64a2961..6946712 100644 --- a/src/components/buttons/checkstats.ts +++ b/src/components/buttons/checkstats.ts @@ -2,7 +2,7 @@ import { embedColor, devMessage } from "config/options" import guildapp from "schemas/guildAppSchema" import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs" import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel" -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "checkstats", @@ -176,4 +176,4 @@ export = { }] }) } -} as Button +} as IButton diff --git a/src/components/buttons/guildapplicationaccept.ts b/src/components/buttons/guildapplicationaccept.ts index 856aaac..b8b05ed 100644 --- a/src/components/buttons/guildapplicationaccept.ts +++ b/src/components/buttons/guildapplicationaccept.ts @@ -5,7 +5,7 @@ import mongoose from "mongoose" import guildapp from "schemas/guildAppSchema" import waitingList from "schemas/waitinglistSchema" import { waitingListRole } from "config/roles" -import { Button } from "interfaces" +import { IButton } from "interfaces" import { getGuild } from "utils/Hypixel" export = { @@ -136,4 +136,4 @@ export = { ) } } -} as Button +} as IButton diff --git a/src/components/buttons/guildapplicationdeny.ts b/src/components/buttons/guildapplicationdeny.ts index 5d55c21..ee6b10e 100644 --- a/src/components/buttons/guildapplicationdeny.ts +++ b/src/components/buttons/guildapplicationdeny.ts @@ -1,5 +1,5 @@ import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js" -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "guildapplicationdeny", @@ -21,4 +21,4 @@ export = { ) await interaction.showModal(modal) } -} as Button +} as IButton diff --git a/src/components/buttons/guildapply.ts b/src/components/buttons/guildapply.ts index ec3e7b3..2905df4 100644 --- a/src/components/buttons/guildapply.ts +++ b/src/components/buttons/guildapply.ts @@ -6,7 +6,7 @@ import { guildRole } from "config/roles" import { getUUID } from "utils/Hypixel" import mongoose from "mongoose" import guildapp from "schemas/guildAppSchema" -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "guildapply", @@ -507,4 +507,4 @@ export = { ] }) } -} as Button +} as IButton diff --git a/src/components/buttons/guildinactivitylog.ts b/src/components/buttons/guildinactivitylog.ts index 12c8a96..794d7b7 100644 --- a/src/components/buttons/guildinactivitylog.ts +++ b/src/components/buttons/guildinactivitylog.ts @@ -3,7 +3,7 @@ import { gm, manager, moderator, beast, member, guildStaff, guildRole } from "co import { ignM, smallM, largeM } from "config/limitmessages" import { inactivity } from "config/questions" import { embedColor, inactivityLogChannel } from "config/options" -import { Button } from "interfaces" +import { IButton } from "interfaces" import { getIGN } from "utils/Hypixel" const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole] @@ -281,4 +281,4 @@ export = { ] }) } -} as Button +} as IButton diff --git a/src/components/buttons/inactiveapplicationaccept.ts b/src/components/buttons/inactiveapplicationaccept.ts index adb5138..51efe22 100644 --- a/src/components/buttons/inactiveapplicationaccept.ts +++ b/src/components/buttons/inactiveapplicationaccept.ts @@ -1,4 +1,4 @@ -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "inactiveapplicationaccept", @@ -10,4 +10,4 @@ export = { ephemeral: true }) } -} as Button +} as IButton diff --git a/src/components/buttons/inactiveapplicationdeny.ts b/src/components/buttons/inactiveapplicationdeny.ts index d48cfe4..c294f67 100644 --- a/src/components/buttons/inactiveapplicationdeny.ts +++ b/src/components/buttons/inactiveapplicationdeny.ts @@ -1,4 +1,4 @@ -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "inactiveapplicationdeny", @@ -10,4 +10,4 @@ export = { ephemeral: true }) } -} as Button +} as IButton diff --git a/src/components/buttons/staffapplicationaccept.ts b/src/components/buttons/staffapplicationaccept.ts index b0cb654..7691550 100644 --- a/src/components/buttons/staffapplicationaccept.ts +++ b/src/components/buttons/staffapplicationaccept.ts @@ -1,7 +1,7 @@ import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js" import { embedColor } from "config/options" import staffapp from "schemas/staffAppSchema" -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "staffapplicationaccept", @@ -60,4 +60,4 @@ export = { }] }) } -} as Button +} as IButton diff --git a/src/components/buttons/staffapplicationdeny.ts b/src/components/buttons/staffapplicationdeny.ts index 6b3be04..97ccfe6 100644 --- a/src/components/buttons/staffapplicationdeny.ts +++ b/src/components/buttons/staffapplicationdeny.ts @@ -1,5 +1,5 @@ import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js" -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "staffapplicationdeny", @@ -15,10 +15,10 @@ export = { .setLabel("Deny Reason") .setCustomId("staffdenyreason") .setStyle(TextInputStyle.Paragraph) - .setPlaceholder( "Enter a reason for denying the application") + .setPlaceholder("Enter a reason for denying the application") .setRequired(false) ) ) await interaction.showModal(modal) } -} as Button +} as IButton diff --git a/src/components/buttons/staffapply.ts b/src/components/buttons/staffapply.ts index f950294..eed22a4 100644 --- a/src/components/buttons/staffapply.ts +++ b/src/components/buttons/staffapply.ts @@ -7,7 +7,7 @@ import mongoose from "mongoose" import staffapp from "schemas/staffAppSchema" import settings from "schemas/settingsSchema" import { getUUID } from "utils/Hypixel" -import { Button } from "interfaces" +import { IButton } from "interfaces" import env from "utils/Env" export = { @@ -441,4 +441,4 @@ export = { }) } } -} as Button +} as IButton diff --git a/src/components/buttons/verify.ts b/src/components/buttons/verify.ts index 0e7dd19..593bf2d 100644 --- a/src/components/buttons/verify.ts +++ b/src/components/buttons/verify.ts @@ -1,5 +1,5 @@ import { ModalBuilder, ActionRowBuilder, TextInputBuilder, TextInputStyle } from "discord.js" -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "verify", @@ -23,4 +23,4 @@ export = { ) await interaction.showModal(modal) } -} as Button +} as IButton diff --git a/src/components/buttons/waitingListUpdate.ts b/src/components/buttons/waitingListUpdate.ts index a646e8a..85d5aeb 100644 --- a/src/components/buttons/waitingListUpdate.ts +++ b/src/components/buttons/waitingListUpdate.ts @@ -1,7 +1,7 @@ import waitinglist from "schemas/waitinglistSchema" import { getGuild } from "utils/Hypixel" import { hypixelGuildID } from "config/options" -import { Button } from "interfaces" +import { IButton } from "interfaces" export = { name: "waitinglistupdate", @@ -53,4 +53,4 @@ export = { await interaction.editReply("Updated the waiting list") } -} as Button +} as IButton diff --git a/src/components/modals/denyreasonbox.ts b/src/components/modals/denyreasonbox.ts index 676cdef..620a5e2 100644 --- a/src/components/modals/denyreasonbox.ts +++ b/src/components/modals/denyreasonbox.ts @@ -1,7 +1,7 @@ import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Message, GuildMember } from "discord.js" import { embedColor } from "config/options" import guildapp from "schemas/guildAppSchema" -import { Modal } from "interfaces" +import { IModal } from "interfaces" export = { name: "denyreasonbox", @@ -84,4 +84,4 @@ export = { embeds: responseEmbeds }) } -} as Modal +} as IModal diff --git a/src/components/modals/staffdenyreasonbox.ts b/src/components/modals/staffdenyreasonbox.ts index f4c9a7f..1a1ddff 100644 --- a/src/components/modals/staffdenyreasonbox.ts +++ b/src/components/modals/staffdenyreasonbox.ts @@ -1,7 +1,7 @@ import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js" import { embedColor } from "config/options" import staffapp from "schemas/staffAppSchema" -import { Modal } from "interfaces" +import { IModal } from "interfaces" export = { name: "staffdenyreasonbox", @@ -60,4 +60,4 @@ export = { }] }) } -} as Modal +} as IModal diff --git a/src/components/modals/verifyModal.ts b/src/components/modals/verifyModal.ts index c57a912..4526a5f 100644 --- a/src/components/modals/verifyModal.ts +++ b/src/components/modals/verifyModal.ts @@ -3,7 +3,7 @@ import { embedColor, hypixelGuildID, devMessage } from "config/options" import verify from "schemas/verifySchema" import mongoose from "mongoose" import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles" -import { Modal } from "interfaces" +import { IModal } from "interfaces" import { GuildMember } from "discord.js" export = { @@ -145,4 +145,4 @@ export = { }) } } -} as Modal +} as IModal diff --git a/src/events/cron/weeklyGexp.ts b/src/events/cron/weeklyGexp.ts index 1877633..dc37477 100644 --- a/src/events/cron/weeklyGexp.ts +++ b/src/events/cron/weeklyGexp.ts @@ -1,7 +1,7 @@ import { hypixelGuildID, guildLogChannel, embedColor, devMessage } from "config/options" import color from "utils/functions/colors" import { getGuild, getIGN } from "utils/Hypixel" -import { Cron, GuildData } from "interfaces" +import { ICron, IGuildData } from "interfaces" import { client } from "utils/Illegitimate" import { TextChannel } from "discord.js" @@ -20,7 +20,7 @@ async function guildWeekly() { }] }) - const guild = (await getGuild(hypixelGuildID, "id")) as GuildData + const guild = (await getGuild(hypixelGuildID, "id")) as IGuildData const guildMembersList: string[] = [] const topWeeklyMembers: { name: string; value: string; inline: boolean }[] = [] @@ -99,4 +99,4 @@ export = { onComplete: null, start: true, timeZone: "Europe/Zagreb" -} as Cron +} as ICron diff --git a/src/events/server/guildMemberAdd/logNewJoins.ts b/src/events/server/guildMemberAdd/logNewJoins.ts index efc989e..8bf02c0 100644 --- a/src/events/server/guildMemberAdd/logNewJoins.ts +++ b/src/events/server/guildMemberAdd/logNewJoins.ts @@ -1,6 +1,6 @@ import { GuildMember, userMention } from "discord.js" import { embedColor } from "config/options" -import { Event } from "interfaces" +import { IEvent } from "interfaces" import logToChannel from "utils/functions/logtochannel" export = { @@ -27,4 +27,4 @@ export = { }] }) } -} as Event +} as IEvent diff --git a/src/events/server/interactions/logBtnsCmds.ts b/src/events/server/interactions/logBtnsCmds.ts index c00df06..848731b 100644 --- a/src/events/server/interactions/logBtnsCmds.ts +++ b/src/events/server/interactions/logBtnsCmds.ts @@ -1,6 +1,6 @@ import { ChatInputCommandInteraction, ButtonInteraction } from "discord.js" import color from "utils/functions/colors" -import { Event } from "interfaces" +import { IEvent } from "interfaces" export = { name: "logBtnsCmds", @@ -51,4 +51,4 @@ export = { return } } -} as Event +} as IEvent diff --git a/src/events/server/messages/eval.ts b/src/events/server/messages/eval.ts index 3e0ed27..b1a001d 100644 --- a/src/events/server/messages/eval.ts +++ b/src/events/server/messages/eval.ts @@ -1,5 +1,5 @@ import { Message } from "discord.js" -import { Event } from "interfaces" +import { IEvent } from "interfaces" import env from "utils/Env" export = { @@ -31,4 +31,4 @@ export = { }) } } -} as Event +} as IEvent diff --git a/src/events/server/messages/react.ts b/src/events/server/messages/react.ts index 664c20b..eeb8d62 100644 --- a/src/events/server/messages/react.ts +++ b/src/events/server/messages/react.ts @@ -1,4 +1,4 @@ -import { Event } from "interfaces" +import { IEvent } from "interfaces" import { Message } from "discord.js" export = { @@ -11,4 +11,4 @@ export = { message.react("Woot:734345936347725885") } } -} as Event +} as IEvent diff --git a/src/events/server/messages/snipecache.ts b/src/events/server/messages/snipecache.ts index ae7a9f4..8b5a2c7 100644 --- a/src/events/server/messages/snipecache.ts +++ b/src/events/server/messages/snipecache.ts @@ -1,5 +1,5 @@ import { ChannelType, Message } from "discord.js" -import { Event } from "interfaces" +import { IEvent } from "interfaces" import snipeCacheSchema from "schemas/snipeCacheSchema" import mongoose from "mongoose" import { SnipeCache } from "typings" @@ -32,4 +32,4 @@ export = { await snipeCache.save() } -} as Event +} as IEvent diff --git a/src/events/server/ready/consolelog.ts b/src/events/server/ready/consolelog.ts index b7108e9..7d0105e 100644 --- a/src/events/server/ready/consolelog.ts +++ b/src/events/server/ready/consolelog.ts @@ -1,4 +1,4 @@ -import { Event } from "interfaces" +import { IEvent } from "interfaces" import { ExtendedClient as Client } from "utils/Client" import color from "utils/functions/colors" @@ -10,4 +10,4 @@ export = { execute(client: Client) { console.log(color("Logged in as " + client.user!.tag + "!", "green")) } -} as Event +} as IEvent diff --git a/src/events/server/ready/sendOnlineMessage.ts b/src/events/server/ready/sendOnlineMessage.ts index dc2bc16..217cf15 100644 --- a/src/events/server/ready/sendOnlineMessage.ts +++ b/src/events/server/ready/sendOnlineMessage.ts @@ -1,5 +1,5 @@ import logToChannel from "utils/functions/logtochannel" -import { Event } from "interfaces" +import { IEvent } from "interfaces" import { embedColor } from "config/options" export = { @@ -17,4 +17,4 @@ export = { }] }) } -} as Event +} as IEvent diff --git a/src/events/server/ready/status.ts b/src/events/server/ready/status.ts index bb24956..baa4b65 100644 --- a/src/events/server/ready/status.ts +++ b/src/events/server/ready/status.ts @@ -1,5 +1,5 @@ import statuses from "config/statuses" -import { Event } from "interfaces" +import { IEvent } from "interfaces" import { ExtendedClient as Client } from "utils/Client" export = { @@ -27,4 +27,4 @@ export = { user.setStatus("dnd") } -} as Event +} as IEvent diff --git a/src/events/server/voiceStateUpdate/vcJoinLeave.ts b/src/events/server/voiceStateUpdate/vcJoinLeave.ts index 52e5f9e..7d72f3e 100644 --- a/src/events/server/voiceStateUpdate/vcJoinLeave.ts +++ b/src/events/server/voiceStateUpdate/vcJoinLeave.ts @@ -1,6 +1,6 @@ import { userMention, channelMention, VoiceState } from "discord.js" import { embedColor } from "config/options" -import { Event } from "interfaces" +import { IEvent } from "interfaces" import logToChannel from "utils/functions/logtochannel" export = { @@ -58,4 +58,4 @@ export = { }) } } -} as Event +} as IEvent diff --git a/src/interfaces/Autocomplete.ts b/src/interfaces/IAutocomplete.ts similarity index 83% rename from src/interfaces/Autocomplete.ts rename to src/interfaces/IAutocomplete.ts index e20e4a3..3c62ce9 100644 --- a/src/interfaces/Autocomplete.ts +++ b/src/interfaces/IAutocomplete.ts @@ -1,7 +1,7 @@ /* eslint-disable no-unused-vars */ import { AutocompleteInteraction } from "discord.js" -export default interface Autocomplete { +export default interface IAutocomplete { name: string description: string execute: (interacion: AutocompleteInteraction) => Promise diff --git a/src/interfaces/Button.ts b/src/interfaces/IButton.ts similarity index 84% rename from src/interfaces/Button.ts rename to src/interfaces/IButton.ts index 49cf822..91a9705 100644 --- a/src/interfaces/Button.ts +++ b/src/interfaces/IButton.ts @@ -1,7 +1,7 @@ /* eslint-disable no-unused-vars */ import { ButtonInteraction } from "discord.js" -export default interface Button { +export default interface IButton { name: string description: string execute: (interaction: ButtonInteraction) => Promise diff --git a/src/interfaces/Command.ts b/src/interfaces/ICommand.ts similarity index 87% rename from src/interfaces/Command.ts rename to src/interfaces/ICommand.ts index 124acb4..11ae866 100644 --- a/src/interfaces/Command.ts +++ b/src/interfaces/ICommand.ts @@ -2,12 +2,11 @@ import { ChatInputCommandInteraction, SlashCommandBuilder } from "discord.js" import { ExtendedClient as Client } from "utils/Client" -export default interface Command { +export default interface ICommand { name: string description: string dev?: boolean public: boolean - disabled?: boolean subcommands?: boolean data: SlashCommandBuilder execute: (interaction: ChatInputCommandInteraction, client: Client) => Promise diff --git a/src/interfaces/ContextMenu.ts b/src/interfaces/IContextMenu.ts similarity index 88% rename from src/interfaces/ContextMenu.ts rename to src/interfaces/IContextMenu.ts index 5ad8052..067c960 100644 --- a/src/interfaces/ContextMenu.ts +++ b/src/interfaces/IContextMenu.ts @@ -4,7 +4,7 @@ import { ContextMenuCommandBuilder } from "discord.js" -export default interface ContextMenu { +export default interface IContextMenu { name: string description: string dev?: boolean diff --git a/src/interfaces/Cron.ts b/src/interfaces/ICron.ts similarity index 76% rename from src/interfaces/Cron.ts rename to src/interfaces/ICron.ts index 5b7aeb0..a5e4fd4 100644 --- a/src/interfaces/Cron.ts +++ b/src/interfaces/ICron.ts @@ -1,4 +1,4 @@ -import { TimeZones } from "." +import { TimeZones } from "typings" interface TimeFormat { seconds: "*" | number @@ -9,10 +9,10 @@ interface TimeFormat { dayOfWeek: "*" | number } -export default interface Cron { +export default interface ICron { time: TimeFormat execute: () => void onComplete?: null | undefined start?: boolean | null | undefined - timeZone: keyof TimeZones + timeZone: TimeZones } diff --git a/src/interfaces/Env.ts b/src/interfaces/IEnv.ts similarity index 92% rename from src/interfaces/Env.ts rename to src/interfaces/IEnv.ts index 88b436b..fff8e21 100644 --- a/src/interfaces/Env.ts +++ b/src/interfaces/IEnv.ts @@ -13,7 +13,7 @@ interface DevEnv { guildid: string | undefined } -export default interface Env { +export default interface IEnv { prod: ProdEnv dev: DevEnv } diff --git a/src/interfaces/Event.ts b/src/interfaces/IEvent.ts similarity index 86% rename from src/interfaces/Event.ts rename to src/interfaces/IEvent.ts index 9b9efb7..17d6196 100644 --- a/src/interfaces/Event.ts +++ b/src/interfaces/IEvent.ts @@ -1,7 +1,7 @@ /* eslint-disable no-unused-vars */ import { ClientEvents } from "discord.js" -export default interface Event { +export default interface IEvent { name: string description: string event: keyof ClientEvents diff --git a/src/interfaces/Guild.ts b/src/interfaces/IGuild.ts similarity index 95% rename from src/interfaces/Guild.ts rename to src/interfaces/IGuild.ts index f95463f..858232e 100644 --- a/src/interfaces/Guild.ts +++ b/src/interfaces/IGuild.ts @@ -1,11 +1,11 @@ -export interface Guild { +export interface IGuild { data: { success: boolean - guild: GuildData + guild: IGuildData } } -export interface GuildData { +export interface IGuildData { _id: string name: string coins?: number diff --git a/src/interfaces/Modal.ts b/src/interfaces/IModal.ts similarity index 85% rename from src/interfaces/Modal.ts rename to src/interfaces/IModal.ts index 9737e9c..faf0dd6 100644 --- a/src/interfaces/Modal.ts +++ b/src/interfaces/IModal.ts @@ -1,7 +1,7 @@ /* eslint-disable no-unused-vars */ import { ModalSubmitInteraction } from "discord.js" -export default interface Modal { +export default interface IModal { name: string description: string execute: (interaction: ModalSubmitInteraction) => Promise diff --git a/src/interfaces/Player.ts b/src/interfaces/IPlayer.ts similarity index 99% rename from src/interfaces/Player.ts rename to src/interfaces/IPlayer.ts index a9130ad..afe7fe1 100644 --- a/src/interfaces/Player.ts +++ b/src/interfaces/IPlayer.ts @@ -1,11 +1,11 @@ -export interface Player { +export interface IPlayer { data: { success: boolean - player: PlayerData + player: IPlayerData } } -export interface PlayerData { +export interface IPlayerData { _id?: string uuid?: string firstLogin?: number @@ -8910,7 +8910,7 @@ export interface Active { started?: number } -export interface Objectives {} +export interface Objectives { } export interface DuelsKiller { completions?: Completion2[] @@ -8926,7 +8926,7 @@ export interface Active2 { started?: number } -export interface Objectives2 {} +export interface Objectives2 { } export interface SkywarsArcadeWin { completions?: Completion3[] @@ -8942,7 +8942,7 @@ export interface Active3 { started?: number } -export interface Objectives3 {} +export interface Objectives3 { } export interface PrototypePitDailyKills { completions?: Completion4[] @@ -9020,7 +9020,7 @@ export interface Active7 { started?: number } -export interface Objectives7 {} +export interface Objectives7 { } export interface DuelsWeeklyWins { completions?: Completion9[] @@ -9081,7 +9081,7 @@ export interface Active9 { started?: number } -export interface Objectives9 {} +export interface Objectives9 { } export interface SkywarsWeeklyFreeLootChest { completions?: Completion14[] @@ -9115,7 +9115,7 @@ export interface Active11 { started?: number } -export interface Objectives11 {} +export interface Objectives11 { } export interface SkywarsWeeklyKills { completions?: Completion16[] @@ -9149,7 +9149,7 @@ export interface Active13 { started?: number } -export interface Objectives13 {} +export interface Objectives13 { } export interface SkywarsSoloWin { completions?: Completion18[] @@ -9165,7 +9165,7 @@ export interface Active14 { started?: number } -export interface Objectives14 {} +export interface Objectives14 { } export interface SkywarsWeeklyArcadeWinAll { active?: Active15 @@ -9231,7 +9231,7 @@ export interface Active17 { started?: number } -export interface Objectives17 {} +export interface Objectives17 { } export interface WallsWeekly { active?: Active18 @@ -9261,7 +9261,7 @@ export interface Active19 { started?: number } -export interface Objectives19 {} +export interface Objectives19 { } export interface QuakeDailyWin { completions?: Completion24[] @@ -9277,7 +9277,7 @@ export interface Active20 { started?: number } -export interface Objectives20 {} +export interface Objectives20 { } export interface QuakeDailyKill { completions?: Completion25[] @@ -9293,7 +9293,7 @@ export interface Active21 { started?: number } -export interface Objectives21 {} +export interface Objectives21 { } export interface PaintballExpert { active?: Active22 @@ -9318,7 +9318,7 @@ export interface Active23 { started?: number } -export interface Objectives23 {} +export interface Objectives23 { } export interface ArenaWeeklyPlay { active?: Active24 @@ -9387,7 +9387,7 @@ export interface Active28 { started?: number } -export interface Objectives28 {} +export interface Objectives28 { } export interface VampirezDailyPlay { completions?: Completion27[] @@ -9470,7 +9470,7 @@ export interface Active33 { started?: number } -export interface Objectives33 {} +export interface Objectives33 { } export interface GingerbreadBlingBling { completions?: Completion30[] @@ -9486,7 +9486,7 @@ export interface Active34 { started?: number } -export interface Objectives34 {} +export interface Objectives34 { } export interface GingerbreadMastery { active?: Active35 @@ -9564,7 +9564,7 @@ export interface Active39 { started?: number } -export interface Objectives39 {} +export interface Objectives39 { } export interface VampirezWeeklyHumanKill { active?: Active40 @@ -9588,7 +9588,7 @@ export interface Active41 { started?: number } -export interface Objectives41 {} +export interface Objectives41 { } export interface PrototypePitWeeklyGold { completions?: Completion34[] @@ -9630,7 +9630,7 @@ export interface Active43 { started?: number } -export interface Objectives43 {} +export interface Objectives43 { } export interface ArcadeSpecialist { completions?: Completion37[] @@ -9726,7 +9726,7 @@ export interface Active49 { started?: number } -export interface Objectives49 {} +export interface Objectives49 { } export interface TntPvprunDaily { completions?: Completion41[] @@ -9760,7 +9760,7 @@ export interface Active51 { started?: number } -export interface Objectives51 {} +export interface Objectives51 { } export interface TntPvprunWeekly { completions?: Completion43[] @@ -9794,7 +9794,7 @@ export interface Active53 { started?: number } -export interface Objectives53 {} +export interface Objectives53 { } export interface TntTnttagDaily { completions?: Completion45[] @@ -9810,7 +9810,7 @@ export interface Active54 { started?: number } -export interface Objectives54 {} +export interface Objectives54 { } export interface TntTntrunWeekly { completions?: Completion46[] @@ -9826,7 +9826,7 @@ export interface Active55 { started?: number } -export interface Objectives55 {} +export interface Objectives55 { } export interface TntTntrunDaily { completions?: Completion47[] @@ -9842,7 +9842,7 @@ export interface Active56 { started?: number } -export interface Objectives56 {} +export interface Objectives56 { } export interface CvcKillDailyNormal { completions?: Completion48[] @@ -9858,7 +9858,7 @@ export interface Active57 { started?: number } -export interface Objectives57 {} +export interface Objectives57 { } export interface CvcKillWeekly { active?: Active58 @@ -9883,7 +9883,7 @@ export interface Active59 { started?: number } -export interface Objectives59 {} +export interface Objectives59 { } export interface CvcWinDailyNormal { completions?: Completion49[] @@ -9899,7 +9899,7 @@ export interface Active60 { started?: number } -export interface Objectives60 {} +export interface Objectives60 { } export interface CvcKill { active?: Active61 @@ -9947,7 +9947,7 @@ export interface Active63 { started?: number } -export interface Objectives63 {} +export interface Objectives63 { } export interface BlitzLootChestWeekly { completions?: Completion52[] @@ -9982,7 +9982,7 @@ export interface Active65 { started?: number } -export interface Objectives65 {} +export interface Objectives65 { } export interface BlitzLootChestDaily { completions?: Completion54[] @@ -10052,7 +10052,7 @@ export interface Active69 { started?: number } -export interface Objectives69 {} +export interface Objectives69 { } export interface MmDailyPowerPlay { completions?: Completion58[] @@ -10068,7 +10068,7 @@ export interface Active70 { started?: number } -export interface Objectives70 {} +export interface Objectives70 { } export interface MmWeeklyWins { completions?: Completion59[] @@ -10084,7 +10084,7 @@ export interface Active71 { started?: number } -export interface Objectives71 {} +export interface Objectives71 { } export interface MmDailyTargetKill { completions?: Completion60[] @@ -10100,7 +10100,7 @@ export interface Active72 { started?: number } -export interface Objectives72 {} +export interface Objectives72 { } export interface MmWeeklyMurdererKills { completions?: Completion61[] @@ -10147,7 +10147,7 @@ export interface Active75 { started?: number } -export interface Objectives75 {} +export interface Objectives75 { } export interface UhcTeam { completions?: Completion63[] @@ -10163,7 +10163,7 @@ export interface Active76 { started?: number } -export interface Objectives76 {} +export interface Objectives76 { } export interface UhcWeekly { active?: Active77 @@ -10192,7 +10192,7 @@ export interface Active78 { started?: number } -export interface Objectives78 {} +export interface Objectives78 { } export interface UhcWeeklySpecialCookie { active?: Active79 @@ -10203,7 +10203,7 @@ export interface Active79 { started?: number } -export interface Objectives79 {} +export interface Objectives79 { } export interface UhcSolo { active?: Active80 @@ -10214,7 +10214,7 @@ export interface Active80 { started?: number } -export interface Objectives80 {} +export interface Objectives80 { } export interface UhcMadness { completions?: Completion65[] @@ -10261,7 +10261,7 @@ export interface Active83 { started?: number } -export interface Objectives83 {} +export interface Objectives83 { } export interface TntWeeklySpecial { active?: Active84 @@ -10272,7 +10272,7 @@ export interface Active84 { started?: number } -export interface Objectives84 {} +export interface Objectives84 { } export interface SupersmashSoloWin { completions?: Completion67[] @@ -10288,7 +10288,7 @@ export interface Active85 { started?: number } -export interface Objectives85 {} +export interface Objectives85 { } export interface SupersmashTeamWin { active?: Active86 @@ -10299,7 +10299,7 @@ export interface Active86 { started?: number } -export interface Objectives86 {} +export interface Objectives86 { } export interface SupersmashTeamKills { active?: Active87 @@ -10310,7 +10310,7 @@ export interface Active87 { started?: number } -export interface Objectives87 {} +export interface Objectives87 { } export interface SupersmashSoloKills { completions?: Completion68[] @@ -10326,7 +10326,7 @@ export interface Active88 { started?: number } -export interface Objectives88 {} +export interface Objectives88 { } export interface SupersmashWeeklyKills { active?: Active89 @@ -10372,7 +10372,7 @@ export interface Active91 { started?: number } -export interface Objectives91 {} +export interface Objectives91 { } export interface WarlordsDedication { active?: Active92 @@ -10383,7 +10383,7 @@ export interface Active92 { started?: number } -export interface Objectives92 {} +export interface Objectives92 { } export interface WarlordsVictorious { active?: Active93 @@ -10394,7 +10394,7 @@ export interface Active93 { started?: number } -export interface Objectives93 {} +export interface Objectives93 { } export interface WarlordsDomination { active?: Active94 @@ -10405,7 +10405,7 @@ export interface Active94 { started?: number } -export interface Objectives94 {} +export interface Objectives94 { } export interface WarlordsCtf { active?: Active95 @@ -10416,7 +10416,7 @@ export interface Active95 { started?: number } -export interface Objectives95 {} +export interface Objectives95 { } export interface BuildBattlePlayer { completions?: Completion70[] @@ -10468,7 +10468,7 @@ export interface Active98 { started?: number } -export interface Objectives98 {} +export interface Objectives98 { } export interface MegaWallsWeekly { active?: Active99 @@ -10498,7 +10498,7 @@ export interface Active100 { started?: number } -export interface Objectives100 {} +export interface Objectives100 { } export interface MegaWallsFaithful { active?: Active101 @@ -10535,7 +10535,7 @@ export interface Active103 { started?: number } -export interface Objectives103 {} +export interface Objectives103 { } export interface MmSpecialWeeklyKillerInstinct2020 { active?: Active104 @@ -10546,7 +10546,7 @@ export interface Active104 { started?: number } -export interface Objectives104 {} +export interface Objectives104 { } export interface SkywarsHalloweenHarvest2020 { active?: Active105 @@ -10575,7 +10575,7 @@ export interface Active106 { started?: number } -export interface Objectives106 {} +export interface Objectives106 { } export interface BuildBattleChristmas { active?: Active107 @@ -10586,7 +10586,7 @@ export interface Active107 { started?: number } -export interface Objectives107 {} +export interface Objectives107 { } export interface BuildBattleChristmasWeekly { active?: Active108 @@ -10597,7 +10597,7 @@ export interface Active108 { started?: number } -export interface Objectives108 {} +export interface Objectives108 { } export interface MmDailyInfector { active?: Active109 @@ -10621,7 +10621,7 @@ export interface Active110 { started?: number } -export interface Objectives110 {} +export interface Objectives110 { } export interface BuildBattleHalloween { active?: Active111 @@ -10632,7 +10632,7 @@ export interface Active111 { started?: number } -export interface Objectives111 {} +export interface Objectives111 { } export interface SkywarsHalloweenHarvest2021 { active?: Active112 @@ -10669,7 +10669,7 @@ export interface Active113 { started?: number } -export interface Objectives113 {} +export interface Objectives113 { } export interface WoolWarsDailyWins { completions?: Completion77[] @@ -10756,7 +10756,7 @@ export interface Active119 { started?: number } -export interface Objectives119 {} +export interface Objectives119 { } export interface PitWeeklyGold { active?: Active120 @@ -10806,7 +10806,7 @@ export interface Active122 { started?: number } -export interface Objectives122 {} +export interface Objectives122 { } export interface BedwarsDailyFinalKiller { completions?: Completion81[] @@ -10833,7 +10833,7 @@ export interface Active123 { started?: number } -export interface Objectives123 {} +export interface Objectives123 { } export interface MmSpecialWeeklyKillerInstinct2023 { active?: Active124 @@ -10844,7 +10844,7 @@ export interface Active124 { started?: number } -export interface Objectives124 {} +export interface Objectives124 { } export interface Dmcrates102019 { MVP_PLUS?: boolean diff --git a/src/interfaces/TimeZones.ts b/src/interfaces/TimeZones.ts deleted file mode 100644 index 807e591..0000000 --- a/src/interfaces/TimeZones.ts +++ /dev/null @@ -1,430 +0,0 @@ -export default interface TimeZones { - "Africa/Abidjan": string - "Africa/Accra": string - "Africa/Addis_Ababa": string - "Africa/Algiers": string - "Africa/Asmera": string - "Africa/Bamako": string - "Africa/Bangui": string - "Africa/Banjul": string - "Africa/Bissau": string - "Africa/Blantyre": string - "Africa/Brazzaville": string - "Africa/Bujumbura": string - "Africa/Cairo": string - "Africa/Casablanca": string - "Africa/Ceuta": string - "Africa/Conakry": string - "Africa/Dakar": string - "Africa/Dar_es_Salaam": string - "Africa/Djibouti": string - "Africa/Douala": string - "Africa/El_Aaiun": string - "Africa/Freetown": string - "Africa/Gaborone": string - "Africa/Harare": string - "Africa/Johannesburg": string - "Africa/Juba": string - "Africa/Kampala": string - "Africa/Khartoum": string - "Africa/Kigali": string - "Africa/Kinshasa": string - "Africa/Lagos": string - "Africa/Libreville": string - "Africa/Lome": string - "Africa/Luanda": string - "Africa/Lubumbashi": string - "Africa/Lusaka": string - "Africa/Malabo": string - "Africa/Maputo": string - "Africa/Maseru": string - "Africa/Mbabane": string - "Africa/Mogadishu": string - "Africa/Monrovia": string - "Africa/Nairobi": string - "Africa/Ndjamena": string - "Africa/Niamey": string - "Africa/Nouakchott": string - "Africa/Ouagadougou": string - "Africa/Porto-Novo": string - "Africa/Sao_Tome": string - "Africa/Tripoli": string - "Africa/Tunis": string - "Africa/Windhoek": string - "America/Adak": string - "America/Anchorage": string - "America/Anguilla": string - "America/Antigua": string - "America/Araguaina": string - "America/Argentina/La_Rioja": string - "America/Argentina/Rio_Gallegos": string - "America/Argentina/Salta": string - "America/Argentina/San_Juan": string - "America/Argentina/San_Luis": string - "America/Argentina/Tucuman": string - "America/Argentina/Ushuaia": string - "America/Aruba": string - "America/Asuncion": string - "America/Bahia": string - "America/Bahia_Banderas": string - "America/Barbados": string - "America/Belem": string - "America/Belize": string - "America/Blanc-Sablon": string - "America/Boa_Vista": string - "America/Bogota": string - "America/Boise": string - "America/Buenos_Aires": string - "America/Cambridge_Bay": string - "America/Campo_Grande": string - "America/Cancun": string - "America/Caracas": string - "America/Catamarca": string - "America/Cayenne": string - "America/Cayman": string - "America/Chicago": string - "America/Chihuahua": string - "America/Ciudad_Juarez": string - "America/Coral_Harbour": string - "America/Cordoba": string - "America/Costa_Rica": string - "America/Creston": string - "America/Cuiaba": string - "America/Curacao": string - "America/Danmarkshavn": string - "America/Dawson": string - "America/Dawson_Creek": string - "America/Denver": string - "America/Detroit": string - "America/Dominica": string - "America/Edmonton": string - "America/Eirunepe": string - "America/El_Salvador": string - "America/Fort_Nelson": string - "America/Fortaleza": string - "America/Glace_Bay": string - "America/Godthab": string - "America/Goose_Bay": string - "America/Grand_Turk": string - "America/Grenada": string - "America/Guadeloupe": string - "America/Guatemala": string - "America/Guayaquil": string - "America/Guyana": string - "America/Halifax": string - "America/Havana": string - "America/Hermosillo": string - "America/Indiana/Knox": string - "America/Indiana/Marengo": string - "America/Indiana/Petersburg": string - "America/Indiana/Tell_City": string - "America/Indiana/Vevay": string - "America/Indiana/Vincennes": string - "America/Indiana/Winamac": string - "America/Indianapolis": string - "America/Inuvik": string - "America/Iqaluit": string - "America/Jamaica": string - "America/Jujuy": string - "America/Juneau": string - "America/Kentucky/Monticello": string - "America/Kralendijk": string - "America/La_Paz": string - "America/Lima": string - "America/Los_Angeles": string - "America/Louisville": string - "America/Lower_Princes": string - "America/Maceio": string - "America/Managua": string - "America/Manaus": string - "America/Marigot": string - "America/Martinique": string - "America/Matamoros": string - "America/Mazatlan": string - "America/Mendoza": string - "America/Menominee": string - "America/Merida": string - "America/Metlakatla": string - "America/Mexico_City": string - "America/Miquelon": string - "America/Moncton": string - "America/Monterrey": string - "America/Montevideo": string - "America/Montserrat": string - "America/Nassau": string - "America/New_York": string - "America/Nipigon": string - "America/Nome": string - "America/Noronha": string - "America/North_Dakota/Beulah": string - "America/North_Dakota/Center": string - "America/North_Dakota/New_Salem": string - "America/Ojinaga": string - "America/Panama": string - "America/Pangnirtung": string - "America/Paramaribo": string - "America/Phoenix": string - "America/Port-au-Prince": string - "America/Port_of_Spain": string - "America/Porto_Velho": string - "America/Puerto_Rico": string - "America/Punta_Arenas": string - "America/Rainy_River": string - "America/Rankin_Inlet": string - "America/Recife": string - "America/Regina": string - "America/Resolute": string - "America/Rio_Branco": string - "America/Santa_Isabel": string - "America/Santarem": string - "America/Santiago": string - "America/Santo_Domingo": string - "America/Sao_Paulo": string - "America/Scoresbysund": string - "America/Sitka": string - "America/St_Barthelemy": string - "America/St_Johns": string - "America/St_Kitts": string - "America/St_Lucia": string - "America/St_Thomas": string - "America/St_Vincent": string - "America/Swift_Current": string - "America/Tegucigalpa": string - "America/Thule": string - "America/Thunder_Bay": string - "America/Tijuana": string - "America/Toronto": string - "America/Tortola": string - "America/Vancouver": string - "America/Whitehorse": string - "America/Winnipeg": string - "America/Yakutat": string - "America/Yellowknife": string - "Antarctica/Casey": string - "Antarctica/Davis": string - "Antarctica/DumontDUrville": string - "Antarctica/Macquarie": string - "Antarctica/Mawson": string - "Antarctica/McMurdo": string - "Antarctica/Palmer": string - "Antarctica/Rothera": string - "Antarctica/Syowa": string - "Antarctica/Troll": string - "Antarctica/Vostok": string - "Arctic/Longyearbyen": string - "Asia/Aden": string - "Asia/Almaty": string - "Asia/Amman": string - "Asia/Anadyr": string - "Asia/Aqtau": string - "Asia/Aqtobe": string - "Asia/Ashgabat": string - "Asia/Atyrau": string - "Asia/Baghdad": string - "Asia/Bahrain": string - "Asia/Baku": string - "Asia/Bangkok": string - "Asia/Barnaul": string - "Asia/Beirut": string - "Asia/Bishkek": string - "Asia/Brunei": string - "Asia/Calcutta": string - "Asia/Chita": string - "Asia/Choibalsan": string - "Asia/Colombo": string - "Asia/Damascus": string - "Asia/Dhaka": string - "Asia/Dili": string - "Asia/Dubai": string - "Asia/Dushanbe": string - "Asia/Famagusta": string - "Asia/Gaza": string - "Asia/Hebron": string - "Asia/Hong_Kong": string - "Asia/Hovd": string - "Asia/Irkutsk": string - "Asia/Jakarta": string - "Asia/Jayapura": string - "Asia/Jerusalem": string - "Asia/Kabul": string - "Asia/Kamchatka": string - "Asia/Karachi": string - "Asia/Katmandu": string - "Asia/Khandyga": string - "Asia/Krasnoyarsk": string - "Asia/Kuala_Lumpur": string - "Asia/Kuching": string - "Asia/Kuwait": string - "Asia/Macau": string - "Asia/Magadan": string - "Asia/Makassar": string - "Asia/Manila": string - "Asia/Muscat": string - "Asia/Nicosia": string - "Asia/Novokuznetsk": string - "Asia/Novosibirsk": string - "Asia/Omsk": string - "Asia/Oral": string - "Asia/Phnom_Penh": string - "Asia/Pontianak": string - "Asia/Pyongyang": string - "Asia/Qatar": string - "Asia/Qostanay": string - "Asia/Qyzylorda": string - "Asia/Rangoon": string - "Asia/Riyadh": string - "Asia/Saigon": string - "Asia/Sakhalin": string - "Asia/Samarkand": string - "Asia/Seoul": string - "Asia/Shanghai": string - "Asia/Singapore": string - "Asia/Srednekolymsk": string - "Asia/Taipei": string - "Asia/Tashkent": string - "Asia/Tbilisi": string - "Asia/Tehran": string - "Asia/Thimphu": string - "Asia/Tokyo": string - "Asia/Tomsk": string - "Asia/Ulaanbaatar": string - "Asia/Urumqi": string - "Asia/Ust-Nera": string - "Asia/Vientiane": string - "Asia/Vladivostok": string - "Asia/Yakutsk": string - "Asia/Yekaterinburg": string - "Asia/Yerevan": string - "Atlantic/Azores": string - "Atlantic/Bermuda": string - "Atlantic/Canary": string - "Atlantic/Cape_Verde": string - "Atlantic/Faeroe": string - "Atlantic/Madeira": string - "Atlantic/Reykjavik": string - "Atlantic/South_Georgia": string - "Atlantic/St_Helena": string - "Atlantic/Stanley": string - "Australia/Adelaide": string - "Australia/Brisbane": string - "Australia/Broken_Hill": string - "Australia/Currie": string - "Australia/Darwin": string - "Australia/Eucla": string - "Australia/Hobart": string - "Australia/Lindeman": string - "Australia/Lord_Howe": string - "Australia/Melbourne": string - "Australia/Perth": string - "Australia/Sydney": string - "Europe/Amsterdam": string - "Europe/Andorra": string - "Europe/Astrakhan": string - "Europe/Athens": string - "Europe/Belgrade": string - "Europe/Berlin": string - "Europe/Bratislava": string - "Europe/Brussels": string - "Europe/Bucharest": string - "Europe/Budapest": string - "Europe/Busingen": string - "Europe/Chisinau": string - "Europe/Copenhagen": string - "Europe/Dublin": string - "Europe/Gibraltar": string - "Europe/Guernsey": string - "Europe/Helsinki": string - "Europe/Isle_of_Man": string - "Europe/Istanbul": string - "Europe/Jersey": string - "Europe/Kaliningrad": string - "Europe/Kiev": string - "Europe/Kirov": string - "Europe/Lisbon": string - "Europe/Ljubljana": string - "Europe/London": string - "Europe/Luxembourg": string - "Europe/Madrid": string - "Europe/Malta": string - "Europe/Mariehamn": string - "Europe/Minsk": string - "Europe/Monaco": string - "Europe/Moscow": string - "Europe/Oslo": string - "Europe/Paris": string - "Europe/Podgorica": string - "Europe/Prague": string - "Europe/Riga": string - "Europe/Rome": string - "Europe/Samara": string - "Europe/San_Marino": string - "Europe/Sarajevo": string - "Europe/Saratov": string - "Europe/Simferopol": string - "Europe/Skopje": string - "Europe/Sofia": string - "Europe/Stockholm": string - "Europe/Tallinn": string - "Europe/Tirane": string - "Europe/Ulyanovsk": string - "Europe/Uzhgorod": string - "Europe/Vaduz": string - "Europe/Vatican": string - "Europe/Vienna": string - "Europe/Vilnius": string - "Europe/Volgograd": string - "Europe/Warsaw": string - "Europe/Zagreb": string - "Europe/Zaporozhye": string - "Europe/Zurich": string - "Indian/Antananarivo": string - "Indian/Chagos": string - "Indian/Christmas": string - "Indian/Cocos": string - "Indian/Comoro": string - "Indian/Kerguelen": string - "Indian/Mahe": string - "Indian/Maldives": string - "Indian/Mauritius": string - "Indian/Mayotte": string - "Indian/Reunion": string - "Pacific/Apia": string - "Pacific/Auckland": string - "Pacific/Bougainville": string - "Pacific/Chatham": string - "Pacific/Easter": string - "Pacific/Efate": string - "Pacific/Enderbury": string - "Pacific/Fakaofo": string - "Pacific/Fiji": string - "Pacific/Funafuti": string - "Pacific/Galapagos": string - "Pacific/Gambier": string - "Pacific/Guadalcanal": string - "Pacific/Guam": string - "Pacific/Honolulu": string - "Pacific/Johnston": string - "Pacific/Kiritimati": string - "Pacific/Kosrae": string - "Pacific/Kwajalein": string - "Pacific/Majuro": string - "Pacific/Marquesas": string - "Pacific/Midway": string - "Pacific/Nauru": string - "Pacific/Niue": string - "Pacific/Norfolk": string - "Pacific/Noumea": string - "Pacific/Pago_Pago": string - "Pacific/Palau": string - "Pacific/Pitcairn": string - "Pacific/Ponape": string - "Pacific/Port_Moresby": string - "Pacific/Rarotonga": string - "Pacific/Saipan": string - "Pacific/Tahiti": string - "Pacific/Tarawa": string - "Pacific/Tongatapu": string - "Pacific/Truk": string - "Pacific/Wake": string - "Pacific/Wallis": string -} diff --git a/src/interfaces/index.ts b/src/interfaces/index.ts index 9314e42..1aec9b3 100644 --- a/src/interfaces/index.ts +++ b/src/interfaces/index.ts @@ -1,29 +1,27 @@ -import Autocomplete from "./Autocomplete" -import Button from "./Button" -import Command from "./Command" -import ContextMenu from "./ContextMenu" -import Event from "./Event" -import Modal from "./Modal" +import IAutocomplete from "./IAutocomplete" +import IButton from "./IButton" +import ICommand from "./ICommand" +import IContextMenu from "./IContextMenu" +import IEvent from "./IEvent" +import IModal from "./IModal" -import Env from "./Env" -import Cron from "./Cron" -import TimeZones from "./TimeZones" +import IEnv from "./IEnv" +import ICron from "./ICron" -import { Guild, GuildData } from "./Guild" -import { Player, PlayerData } from "./Player" +import { IGuild, IGuildData } from "./IGuild" +import { IPlayer, IPlayerData } from "./IPlayer" export { - Env, - Cron, - TimeZones, - Autocomplete, - Button, - Command, - ContextMenu, - Event, - Modal, - Guild, - GuildData, - Player, - PlayerData + IEnv, + ICron, + IAutocomplete, + IButton, + ICommand, + IContextMenu, + IEvent, + IModal, + IGuild, + IGuildData, + IPlayer, + IPlayerData } diff --git a/src/typings/TimeZones.ts b/src/typings/TimeZones.ts new file mode 100644 index 0000000..fab62cd --- /dev/null +++ b/src/typings/TimeZones.ts @@ -0,0 +1,432 @@ +const TimeZones = [ + "Africa/Abidjan", + "Africa/Accra", + "Africa/Addis_Ababa", + "Africa/Algiers", + "Africa/Asmera", + "Africa/Bamako", + "Africa/Bangui", + "Africa/Banjul", + "Africa/Bissau", + "Africa/Blantyre", + "Africa/Brazzaville", + "Africa/Bujumbura", + "Africa/Cairo", + "Africa/Casablanca", + "Africa/Ceuta", + "Africa/Conakry", + "Africa/Dakar", + "Africa/Dar_es_Salaam", + "Africa/Djibouti", + "Africa/Douala", + "Africa/El_Aaiun", + "Africa/Freetown", + "Africa/Gaborone", + "Africa/Harare", + "Africa/Johannesburg", + "Africa/Juba", + "Africa/Kampala", + "Africa/Khartoum", + "Africa/Kigali", + "Africa/Kinshasa", + "Africa/Lagos", + "Africa/Libreville", + "Africa/Lome", + "Africa/Luanda", + "Africa/Lubumbashi", + "Africa/Lusaka", + "Africa/Malabo", + "Africa/Maputo", + "Africa/Maseru", + "Africa/Mbabane", + "Africa/Mogadishu", + "Africa/Monrovia", + "Africa/Nairobi", + "Africa/Ndjamena", + "Africa/Niamey", + "Africa/Nouakchott", + "Africa/Ouagadougou", + "Africa/Porto-Novo", + "Africa/Sao_Tome", + "Africa/Tripoli", + "Africa/Tunis", + "Africa/Windhoek", + "America/Adak", + "America/Anchorage", + "America/Anguilla", + "America/Antigua", + "America/Araguaina", + "America/Argentina/La_Rioja", + "America/Argentina/Rio_Gallegos", + "America/Argentina/Salta", + "America/Argentina/San_Juan", + "America/Argentina/San_Luis", + "America/Argentina/Tucuman", + "America/Argentina/Ushuaia", + "America/Aruba", + "America/Asuncion", + "America/Bahia", + "America/Bahia_Banderas", + "America/Barbados", + "America/Belem", + "America/Belize", + "America/Blanc-Sablon", + "America/Boa_Vista", + "America/Bogota", + "America/Boise", + "America/Buenos_Aires", + "America/Cambridge_Bay", + "America/Campo_Grande", + "America/Cancun", + "America/Caracas", + "America/Catamarca", + "America/Cayenne", + "America/Cayman", + "America/Chicago", + "America/Chihuahua", + "America/Ciudad_Juarez", + "America/Coral_Harbour", + "America/Cordoba", + "America/Costa_Rica", + "America/Creston", + "America/Cuiaba", + "America/Curacao", + "America/Danmarkshavn", + "America/Dawson", + "America/Dawson_Creek", + "America/Denver", + "America/Detroit", + "America/Dominica", + "America/Edmonton", + "America/Eirunepe", + "America/El_Salvador", + "America/Fort_Nelson", + "America/Fortaleza", + "America/Glace_Bay", + "America/Godthab", + "America/Goose_Bay", + "America/Grand_Turk", + "America/Grenada", + "America/Guadeloupe", + "America/Guatemala", + "America/Guayaquil", + "America/Guyana", + "America/Halifax", + "America/Havana", + "America/Hermosillo", + "America/Indiana/Knox", + "America/Indiana/Marengo", + "America/Indiana/Petersburg", + "America/Indiana/Tell_City", + "America/Indiana/Vevay", + "America/Indiana/Vincennes", + "America/Indiana/Winamac", + "America/Indianapolis", + "America/Inuvik", + "America/Iqaluit", + "America/Jamaica", + "America/Jujuy", + "America/Juneau", + "America/Kentucky/Monticello", + "America/Kralendijk", + "America/La_Paz", + "America/Lima", + "America/Los_Angeles", + "America/Louisville", + "America/Lower_Princes", + "America/Maceio", + "America/Managua", + "America/Manaus", + "America/Marigot", + "America/Martinique", + "America/Matamoros", + "America/Mazatlan", + "America/Mendoza", + "America/Menominee", + "America/Merida", + "America/Metlakatla", + "America/Mexico_City", + "America/Miquelon", + "America/Moncton", + "America/Monterrey", + "America/Montevideo", + "America/Montserrat", + "America/Nassau", + "America/New_York", + "America/Nipigon", + "America/Nome", + "America/Noronha", + "America/North_Dakota/Beulah", + "America/North_Dakota/Center", + "America/North_Dakota/New_Salem", + "America/Ojinaga", + "America/Panama", + "America/Pangnirtung", + "America/Paramaribo", + "America/Phoenix", + "America/Port-au-Prince", + "America/Port_of_Spain", + "America/Porto_Velho", + "America/Puerto_Rico", + "America/Punta_Arenas", + "America/Rainy_River", + "America/Rankin_Inlet", + "America/Recife", + "America/Regina", + "America/Resolute", + "America/Rio_Branco", + "America/Santa_Isabel", + "America/Santarem", + "America/Santiago", + "America/Santo_Domingo", + "America/Sao_Paulo", + "America/Scoresbysund", + "America/Sitka", + "America/St_Barthelemy", + "America/St_Johns", + "America/St_Kitts", + "America/St_Lucia", + "America/St_Thomas", + "America/St_Vincent", + "America/Swift_Current", + "America/Tegucigalpa", + "America/Thule", + "America/Thunder_Bay", + "America/Tijuana", + "America/Toronto", + "America/Tortola", + "America/Vancouver", + "America/Whitehorse", + "America/Winnipeg", + "America/Yakutat", + "America/Yellowknife", + "Antarctica/Casey", + "Antarctica/Davis", + "Antarctica/DumontDUrville", + "Antarctica/Macquarie", + "Antarctica/Mawson", + "Antarctica/McMurdo", + "Antarctica/Palmer", + "Antarctica/Rothera", + "Antarctica/Syowa", + "Antarctica/Troll", + "Antarctica/Vostok", + "Arctic/Longyearbyen", + "Asia/Aden", + "Asia/Almaty", + "Asia/Amman", + "Asia/Anadyr", + "Asia/Aqtau", + "Asia/Aqtobe", + "Asia/Ashgabat", + "Asia/Atyrau", + "Asia/Baghdad", + "Asia/Bahrain", + "Asia/Baku", + "Asia/Bangkok", + "Asia/Barnaul", + "Asia/Beirut", + "Asia/Bishkek", + "Asia/Brunei", + "Asia/Calcutta", + "Asia/Chita", + "Asia/Choibalsan", + "Asia/Colombo", + "Asia/Damascus", + "Asia/Dhaka", + "Asia/Dili", + "Asia/Dubai", + "Asia/Dushanbe", + "Asia/Famagusta", + "Asia/Gaza", + "Asia/Hebron", + "Asia/Hong_Kong", + "Asia/Hovd", + "Asia/Irkutsk", + "Asia/Jakarta", + "Asia/Jayapura", + "Asia/Jerusalem", + "Asia/Kabul", + "Asia/Kamchatka", + "Asia/Karachi", + "Asia/Katmandu", + "Asia/Khandyga", + "Asia/Krasnoyarsk", + "Asia/Kuala_Lumpur", + "Asia/Kuching", + "Asia/Kuwait", + "Asia/Macau", + "Asia/Magadan", + "Asia/Makassar", + "Asia/Manila", + "Asia/Muscat", + "Asia/Nicosia", + "Asia/Novokuznetsk", + "Asia/Novosibirsk", + "Asia/Omsk", + "Asia/Oral", + "Asia/Phnom_Penh", + "Asia/Pontianak", + "Asia/Pyongyang", + "Asia/Qatar", + "Asia/Qostanay", + "Asia/Qyzylorda", + "Asia/Rangoon", + "Asia/Riyadh", + "Asia/Saigon", + "Asia/Sakhalin", + "Asia/Samarkand", + "Asia/Seoul", + "Asia/Shanghai", + "Asia/Singapore", + "Asia/Srednekolymsk", + "Asia/Taipei", + "Asia/Tashkent", + "Asia/Tbilisi", + "Asia/Tehran", + "Asia/Thimphu", + "Asia/Tokyo", + "Asia/Tomsk", + "Asia/Ulaanbaatar", + "Asia/Urumqi", + "Asia/Ust-Nera", + "Asia/Vientiane", + "Asia/Vladivostok", + "Asia/Yakutsk", + "Asia/Yekaterinburg", + "Asia/Yerevan", + "Atlantic/Azores", + "Atlantic/Bermuda", + "Atlantic/Canary", + "Atlantic/Cape_Verde", + "Atlantic/Faeroe", + "Atlantic/Madeira", + "Atlantic/Reykjavik", + "Atlantic/South_Georgia", + "Atlantic/St_Helena", + "Atlantic/Stanley", + "Australia/Adelaide", + "Australia/Brisbane", + "Australia/Broken_Hill", + "Australia/Currie", + "Australia/Darwin", + "Australia/Eucla", + "Australia/Hobart", + "Australia/Lindeman", + "Australia/Lord_Howe", + "Australia/Melbourne", + "Australia/Perth", + "Australia/Sydney", + "Europe/Amsterdam", + "Europe/Andorra", + "Europe/Astrakhan", + "Europe/Athens", + "Europe/Belgrade", + "Europe/Berlin", + "Europe/Bratislava", + "Europe/Brussels", + "Europe/Bucharest", + "Europe/Budapest", + "Europe/Busingen", + "Europe/Chisinau", + "Europe/Copenhagen", + "Europe/Dublin", + "Europe/Gibraltar", + "Europe/Guernsey", + "Europe/Helsinki", + "Europe/Isle_of_Man", + "Europe/Istanbul", + "Europe/Jersey", + "Europe/Kaliningrad", + "Europe/Kiev", + "Europe/Kirov", + "Europe/Lisbon", + "Europe/Ljubljana", + "Europe/London", + "Europe/Luxembourg", + "Europe/Madrid", + "Europe/Malta", + "Europe/Mariehamn", + "Europe/Minsk", + "Europe/Monaco", + "Europe/Moscow", + "Europe/Oslo", + "Europe/Paris", + "Europe/Podgorica", + "Europe/Prague", + "Europe/Riga", + "Europe/Rome", + "Europe/Samara", + "Europe/San_Marino", + "Europe/Sarajevo", + "Europe/Saratov", + "Europe/Simferopol", + "Europe/Skopje", + "Europe/Sofia", + "Europe/Stockholm", + "Europe/Tallinn", + "Europe/Tirane", + "Europe/Ulyanovsk", + "Europe/Uzhgorod", + "Europe/Vaduz", + "Europe/Vatican", + "Europe/Vienna", + "Europe/Vilnius", + "Europe/Volgograd", + "Europe/Warsaw", + "Europe/Zagreb", + "Europe/Zaporozhye", + "Europe/Zurich", + "Indian/Antananarivo", + "Indian/Chagos", + "Indian/Christmas", + "Indian/Cocos", + "Indian/Comoro", + "Indian/Kerguelen", + "Indian/Mahe", + "Indian/Maldives", + "Indian/Mauritius", + "Indian/Mayotte", + "Indian/Reunion", + "Pacific/Apia", + "Pacific/Auckland", + "Pacific/Bougainville", + "Pacific/Chatham", + "Pacific/Easter", + "Pacific/Efate", + "Pacific/Enderbury", + "Pacific/Fakaofo", + "Pacific/Fiji", + "Pacific/Funafuti", + "Pacific/Galapagos", + "Pacific/Gambier", + "Pacific/Guadalcanal", + "Pacific/Guam", + "Pacific/Honolulu", + "Pacific/Johnston", + "Pacific/Kiritimati", + "Pacific/Kosrae", + "Pacific/Kwajalein", + "Pacific/Majuro", + "Pacific/Marquesas", + "Pacific/Midway", + "Pacific/Nauru", + "Pacific/Niue", + "Pacific/Norfolk", + "Pacific/Noumea", + "Pacific/Pago_Pago", + "Pacific/Palau", + "Pacific/Pitcairn", + "Pacific/Ponape", + "Pacific/Port_Moresby", + "Pacific/Rarotonga", + "Pacific/Saipan", + "Pacific/Tahiti", + "Pacific/Tarawa", + "Pacific/Tongatapu", + "Pacific/Truk", + "Pacific/Wake", + "Pacific/Wallis" +] as const + +export default TimeZones \ No newline at end of file diff --git a/src/typings/index.ts b/src/typings/index.ts index 36d73a3..2d968d7 100644 --- a/src/typings/index.ts +++ b/src/typings/index.ts @@ -1,5 +1,8 @@ import { ChatInputCommandInteraction } from "discord.js" import { ExtendedClient } from "utils/Client" +import TZs from "./TimeZones" + +export type TimeZones = typeof TZs[number] export type SubcommandFunc = (interaction: ChatInputCommandInteraction, client?: ExtendedClient) => Promise @@ -10,4 +13,4 @@ export type SnipeCache = { createdAt: number deletedAt: number attachments: string[] -} +} \ No newline at end of file diff --git a/src/utils/Autodeploy.ts b/src/utils/Autodeploy.ts index 4dacb1b..f7f0f0a 100644 --- a/src/utils/Autodeploy.ts +++ b/src/utils/Autodeploy.ts @@ -1,7 +1,7 @@ import fs from "fs" import { ExtendedClient } from "./Client" import env from "./Env" -import { Command } from "interfaces" +import { ICommand } from "interfaces" import { RESTPostAPIChatInputApplicationCommandsJSONBody } from "discord.js" import color from "./functions/colors" type FileType = "js" | "ts" @@ -20,7 +20,7 @@ export default async function autoDeployCommands(fileType: FileType, client: Ext } for (const file of commandFiles) { - const command: Command = require(`../commands/${file}`) + const command: ICommand = require(`../commands/${file}`) if (command.dev) { commands.push(command.data.toJSON()) } diff --git a/src/utils/Client.ts b/src/utils/Client.ts index 39c5cbf..b3f02b4 100644 --- a/src/utils/Client.ts +++ b/src/utils/Client.ts @@ -1,15 +1,15 @@ import { Client, Collection, GatewayIntentBits, Partials } from "discord.js" import color from "./functions/colors" -import { Command, ContextMenu, Button, Modal, Autocomplete } from "interfaces" +import { ICommand, IContextMenu, IButton, IModal, IAutocomplete } from "interfaces" import env from "./Env" import autoDeployCommands from "./Autodeploy" export class ExtendedClient extends Client { - commands: Collection = new Collection() - contextmenus: Collection = new Collection() - buttons: Collection = new Collection() - modals: Collection = new Collection() - autocomplete: Collection = new Collection() + commands: Collection = new Collection() + contextmenus: Collection = new Collection() + buttons: Collection = new Collection() + modals: Collection = new Collection() + autocomplete: Collection = new Collection() constructor() { super({ diff --git a/src/utils/Env.ts b/src/utils/Env.ts index 445cfbf..73d48c3 100644 --- a/src/utils/Env.ts +++ b/src/utils/Env.ts @@ -1,7 +1,7 @@ -import { Env } from "interfaces" +import { IEnv } from "interfaces" import "dotenv/config" -const env: Env = { +const env: IEnv = { prod: { token: process.env.TOKEN, mongoURI: process.env.MONGOURI, diff --git a/src/utils/Events/autocomplete.ts b/src/utils/Events/autocomplete.ts index 11b953a..a554c19 100644 --- a/src/utils/Events/autocomplete.ts +++ b/src/utils/Events/autocomplete.ts @@ -1,6 +1,6 @@ import { ExtendedClient as Client } from "utils/Client" import { embedColor } from "config/options" -import { Autocomplete } from "interfaces" +import { IAutocomplete } from "interfaces" import { Events } from "discord.js" import color from "utils/functions/colors" import path from "path" @@ -14,7 +14,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) { for (const file of autocompleteFiles) { const filePath = path.join(autocompletePath, file) - const autocomplete: Autocomplete = require(filePath) + const autocomplete: IAutocomplete = require(filePath) if ("name" in autocomplete && "execute" in autocomplete) { client.autocomplete.set(autocomplete.name, autocomplete) diff --git a/src/utils/Events/button.ts b/src/utils/Events/button.ts index 60cd540..f9f0702 100644 --- a/src/utils/Events/button.ts +++ b/src/utils/Events/button.ts @@ -1,7 +1,7 @@ import { ExtendedClient as Client } from "utils/Client" import color from "utils/functions/colors" import { embedColor } from "config/options" -import { Button } from "interfaces" +import { IButton } from "interfaces" import { Events } from "discord.js" import path from "path" import fs from "fs" @@ -14,7 +14,7 @@ export default function loadButtonEvents(client: Client, ft: FileType) { for (const file of btnFiles) { const filePath = path.join(btnPath, file) - const btn: Button = require(filePath) + const btn: IButton = require(filePath) if ("name" in btn && "execute" in btn) { client.buttons.set(btn.name, btn) diff --git a/src/utils/Events/command.ts b/src/utils/Events/command.ts index 92c0cf3..161cb0c 100644 --- a/src/utils/Events/command.ts +++ b/src/utils/Events/command.ts @@ -1,7 +1,7 @@ import { ExtendedClient as Client } from "utils/Client" import color from "utils/functions/colors" import { embedColor } from "config/options" -import { Command } from "interfaces" +import { ICommand } from "interfaces" import { Events } from "discord.js" import path from "path" import fs from "fs" @@ -14,7 +14,7 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) { for (const file of cmdFiles) { const filePath = path.join(cmdPath, file) - const cmd: Command = require(filePath) + const cmd: ICommand = require(filePath) if ("data" in cmd && "execute" in cmd) { client.commands.set(cmd.data.name, cmd) diff --git a/src/utils/Events/contextmenu.ts b/src/utils/Events/contextmenu.ts index 1da23fc..6ef4d2e 100644 --- a/src/utils/Events/contextmenu.ts +++ b/src/utils/Events/contextmenu.ts @@ -1,6 +1,6 @@ import { ExtendedClient as Client } from "utils/Client" import color from "utils/functions/colors" -import { ContextMenu } from "interfaces" +import { IContextMenu } from "interfaces" import { embedColor } from "config/options" import { Events } from "discord.js" import path from "path" @@ -14,7 +14,7 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) { for (const file of contextMenuFiles) { const filePath = path.join(contextMenuPath, file) - const cmd: ContextMenu = require(filePath) + const cmd: IContextMenu = require(filePath) if ("data" in cmd && "execute" in cmd) { client.contextmenus.set(cmd.data.name, cmd) diff --git a/src/utils/Events/cron.ts b/src/utils/Events/cron.ts index 313d74a..c0b262d 100644 --- a/src/utils/Events/cron.ts +++ b/src/utils/Events/cron.ts @@ -1,7 +1,7 @@ import { CronJob } from "cron" import path from "path" import fs from "fs" -import { Cron } from "interfaces" +import { ICron } from "interfaces" export default function loadCronEvents() { const cronPath = path.join(__dirname, "..", "..", "events", "cron") @@ -9,7 +9,7 @@ export default function loadCronEvents() { for (const file of cronFiles) { const filePath = path.join(cronPath, file) - const cron: Cron = require(filePath) + const cron: ICron = require(filePath) const time = cron.time.seconds + " " + diff --git a/src/utils/Events/events.ts b/src/utils/Events/events.ts index db0b9c1..2837bf0 100644 --- a/src/utils/Events/events.ts +++ b/src/utils/Events/events.ts @@ -1,5 +1,5 @@ import { ExtendedClient as Client } from "utils/Client" -import { Event } from "interfaces" +import { IEvent } from "interfaces" import path from "path" import fs from "fs" @@ -10,7 +10,7 @@ export default function loadEvents(client: Client) { const eventFiles = fs.readdirSync(path.join(serverDir, eventDir)) for (const eventFile of eventFiles) { const eventPath = path.join(serverDir, eventDir, eventFile) - const event: Event = require(eventPath) + const event: IEvent = require(eventPath) if (!event.disabled) { client.on(event.event, event.execute) } diff --git a/src/utils/Events/modal.ts b/src/utils/Events/modal.ts index e8f1d90..2b0e764 100644 --- a/src/utils/Events/modal.ts +++ b/src/utils/Events/modal.ts @@ -1,7 +1,7 @@ import { ExtendedClient as Client } from "utils/Client" import color from "utils/functions/colors" import { embedColor } from "config/options" -import { Modal } from "interfaces" +import { IModal } from "interfaces" import { Events } from "discord.js" import path from "path" import fs from "fs" @@ -14,7 +14,7 @@ export default function loadModalEvents(client: Client, ft: FileType) { for (const file of modalFiles) { const filePath = path.join(modalPath, file) - const modal: Modal = require(filePath) + const modal: IModal = require(filePath) if ("name" in modal && "execute" in modal) { client.modals.set(modal.name, modal) diff --git a/src/utils/Hypixel/account.ts b/src/utils/Hypixel/account.ts index 3140083..38ed5f4 100644 --- a/src/utils/Hypixel/account.ts +++ b/src/utils/Hypixel/account.ts @@ -1,7 +1,7 @@ import fetch from "axios" import env from "utils/Env" -import { Player, PlayerData } from "interfaces" -import { Guild, GuildData } from "interfaces" +import { IPlayer, IPlayerData } from "interfaces" +import { IGuild, IGuildData } from "interfaces" const apikey = env.prod.hypixelapikey const mojang = "https://api.mojang.com/users/profiles/minecraft/" const mojanguuid = "https://sessionserver.mojang.com/session/minecraft/profile/" @@ -44,8 +44,8 @@ async function getIGN(uuid: string): Promise { } } -async function getPlayer(uuid: string): Promise { - const playerReq: Player = await fetch(hypixel, { +async function getPlayer(uuid: string): Promise { + const playerReq: IPlayer = await fetch(hypixel, { params: { uuid: uuid }, @@ -61,10 +61,10 @@ async function getPlayer(uuid: string): Promise { return playerReq.data.player } -async function getGuild(query: string, type?: GuildQueryType): Promise { +async function getGuild(query: string, type?: GuildQueryType): Promise { const reqType = type ? type : "player" - const guildReq: Guild = await fetch(guild, { + const guildReq: IGuild = await fetch(guild, { params: { [reqType]: query },