Updated help commands to use command builder
This commit is contained in:
@@ -4,6 +4,7 @@ const { color, devMessage } = require("../../../config/options.json")
|
||||
/** @param { import('discord.js').ChatInputCommandInteraction } interaction */
|
||||
|
||||
async function guildInfo(interaction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
const query = interaction.options.getString("query")
|
||||
const type = interaction.options.getString("type") || "ign"
|
||||
|
||||
@@ -4,6 +4,8 @@ const { color, devMessage } = require("../../../config/options.json")
|
||||
/** @param { import('discord.js').ChatInputCommandInteraction } interaction */
|
||||
|
||||
async function guildMember(interaction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
const ign = interaction.options.getString("ign")
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ const { redis } = require("../../utils/redis.js")
|
||||
/** @param { import('discord.js').ChatInputCommandInteraction } interaction */
|
||||
|
||||
async function guildTop(interaction) {
|
||||
await interaction.deferReply()
|
||||
|
||||
const query = interaction.options.getString("query")
|
||||
const type = interaction.options.getString("type") || "ign"
|
||||
let amount = interaction.options.getNumber("amount") || 10
|
||||
|
||||
Reference in New Issue
Block a user