Updated the guild subcommands

This commit is contained in:
2023-11-16 23:42:05 +01:00
parent 2873664324
commit 6c7afbe98a
3 changed files with 134 additions and 28 deletions

View File

@@ -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",