Added force update and verify

This commit is contained in:
2023-03-29 14:38:19 +02:00
parent eb4f7143b9
commit ec34b1ce0e
4 changed files with 316 additions and 35 deletions

View File

@@ -39,6 +39,10 @@ module.exports = {
subcommand
.setName('sendrules-info')
.setDescription('Send the rules and info message to a channel.'))
.addSubcommand(subcommand =>
subcommand
.setName('reload')
.setDescription('Reload the bot.'))
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
.setDMPermission(false),
@@ -49,6 +53,10 @@ module.exports = {
const subcommand = interaction.options.getSubcommand();
const embedColor = Number(color.replace("#", "0x"));
if (subcommand === 'reload') {
await interaction.reply({ content: "In development.", ephemeral: true });
}
if (subcommand === 'sendguildapplication') {
const channel = interaction.options.getChannel('channel');
@@ -109,5 +117,9 @@ module.exports = {
await interaction.reply({ content: 'Message sent', ephemeral: true })
}
if (subcommand !== "sendguildinfo" || "sendrequirements" || "sendrules-info") {
await interaction.reply({ content: 'In development.', ephemeral: true });
}
}
};