aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/commands/settings.js')
-rw-r--r--bot/src/commands/settings.js22
1 files changed, 19 insertions, 3 deletions
diff --git a/bot/src/commands/settings.js b/bot/src/commands/settings.js
index a04d1c2..5d32a67 100644
--- a/bot/src/commands/settings.js
+++ b/bot/src/commands/settings.js
@@ -1,10 +1,26 @@
-import { SlashCommandBuilder } from 'discord.js';
+import { MessageFlags, PermissionFlagsBits, SlashCommandBuilder } from 'discord.js';
export default {
data: new SlashCommandBuilder()
.setName('settings')
- .setDescription('User settings for AleeBot.'),
+ .setDescription('User settings for AleeBot.')
+ .addSubcommand(subcommand =>
+ subcommand
+ .setName('guild')
+ .setDescription('Change settings for the guild.'))
+ .addSubcommand(subcommand =>
+ subcommand
+ .setName('user')
+ .setDescription('Change settings for the user.')),
async execute(interaction) {
- return await interaction.reply(`**PONG!** :ping_pong: ${Math.round(interaction.client.ws.ping)} ms`);
+ if (interaction.options.getSubcommand() === 'guild') {
+ if (!interaction.member.permissions.has(PermissionFlagsBits.ManageGuild)) return await interaction.reply({ content: 'You do not have the permission to manage this guild.', flags: MessageFlags.Ephemeral });
+
+ return await interaction.reply('recieved');
+ }
+
+ if (interaction.options.getSubcommand() === 'user') {
+ return;
+ }
}
};