Updated the guild subcommands
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const { SlashCommandBuilder } = require('discord.js')
|
||||
const { color } = require('../config/options.json')
|
||||
const { guildMember } = require('./guild/member.js')
|
||||
const { guildInfo } = require('./guild/info.js')
|
||||
|
||||
module.exports = {
|
||||
name: 'guild',
|
||||
@@ -21,6 +22,17 @@ module.exports = {
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName('info')
|
||||
.setDescription('Get info about a guild.')
|
||||
.addStringOption(option =>
|
||||
option
|
||||
.setName('ign')
|
||||
.setDescription('The IGN of a member.')
|
||||
.setRequired(true)
|
||||
)
|
||||
)
|
||||
.setDMPermission(false),
|
||||
|
||||
/** @param { import('discord.js').ChatInputCommandInteraction } interaction */
|
||||
@@ -37,6 +49,11 @@ module.exports = {
|
||||
return
|
||||
}
|
||||
|
||||
if (subcommand === 'info') {
|
||||
await guildInfo(interaction)
|
||||
return
|
||||
}
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
description: "This command is currently under development",
|
||||
|
||||
Reference in New Issue
Block a user