aboutsummaryrefslogtreecommitdiff
path: root/bot/src/commands/warn.js
diff options
context:
space:
mode:
authorAndrew Lee <andrew@alee14.me>2025-04-01 21:52:44 -0400
committerAndrew Lee <andrew@alee14.me>2025-04-01 21:52:44 -0400
commit657599acccf351c7c9366cec9f648b7496c89bdb (patch)
treed35ed13d5234312d8eef5f9584c46ebb16d4b155 /bot/src/commands/warn.js
parent43e2344173178a5945ddca24a9ef7c091269b040 (diff)
downloadAleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.tar.gz
AleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.tar.bz2
AleeBot-657599acccf351c7c9366cec9f648b7496c89bdb.zip
New commands (warn, adventure); Splitting log channels
Diffstat (limited to 'bot/src/commands/warn.js')
-rw-r--r--bot/src/commands/warn.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/bot/src/commands/warn.js b/bot/src/commands/warn.js
new file mode 100644
index 0000000..a053c12
--- /dev/null
+++ b/bot/src/commands/warn.js
@@ -0,0 +1,12 @@
+import { PermissionFlagsBits, SlashCommandBuilder } from 'discord.js';
+
+export default {
+ data: new SlashCommandBuilder()
+ .setName('warn')
+ .setDescription('Warns a member of the server')
+ .setContexts(0)
+ .setDefaultMemberPermissions(PermissionFlagsBits.KickMembers),
+ async execute(interaction) {
+ return await interaction.reply('Hello world');
+ }
+};