Moved subcommand builder to their files
This commit is contained in:
@@ -1,9 +1,35 @@
|
||||
import { SlashCommandSubcommandBuilder } from "discord.js"
|
||||
import { devMessage, embedColor } from "~/config/options"
|
||||
import { IGuildData, SubCommand } from "~/typings"
|
||||
import { numberFormatter } from "~/utils/Functions/intlFormaters"
|
||||
import { getGuild, getIGN, getPlayer, getUUID } from "~/utils/Hypixel"
|
||||
import { redis } from "~/utils/Illegitimate"
|
||||
|
||||
export const topSub = new SlashCommandSubcommandBuilder()
|
||||
.setName("top")
|
||||
.setDescription("Get the top guild members based on gexp")
|
||||
.addStringOption(option =>
|
||||
option
|
||||
.setName("query")
|
||||
.setDescription("The query to search for. [Default: player]")
|
||||
.setRequired(true)
|
||||
)
|
||||
.addStringOption(option =>
|
||||
option
|
||||
.setName("type")
|
||||
.setDescription("The type of query.")
|
||||
.addChoices(
|
||||
{ name: "Guild Member", value: "ign" },
|
||||
{ name: "Guild Name", value: "name" },
|
||||
{ name: "Guild Id", value: "id" }
|
||||
)
|
||||
)
|
||||
.addNumberOption(option =>
|
||||
option
|
||||
.setName("amount")
|
||||
.setDescription("The amount of guild members to show. [Default: 10]")
|
||||
)
|
||||
|
||||
const cmd: SubCommand = async (interaction) => {
|
||||
await interaction.deferReply()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user