diff --git a/commands-contextmenu/congratsmessage.js b/commands-contextmenu/congratsmessage.js index e585819..4a7e3fd 100644 --- a/commands-contextmenu/congratsmessage.js +++ b/commands-contextmenu/congratsmessage.js @@ -10,6 +10,8 @@ module.exports = { .setType(ApplicationCommandType.Message) .setDefaultMemberPermissions(PermissionFlagsBits.ManageMessages), + /** @param { import('discord.js').ContextMenuCommandInteraction } interaction */ + async execute(interaction) { const { targetId } = interaction diff --git a/commands-contextmenu/resetnick.js b/commands-contextmenu/resetnick.js index fe30e05..72070a3 100644 --- a/commands-contextmenu/resetnick.js +++ b/commands-contextmenu/resetnick.js @@ -10,6 +10,8 @@ module.exports = { .setType(ApplicationCommandType.User) .setDefaultMemberPermissions(PermissionFlagsBits.ManageNicknames), + /** @param { import('discord.js').ContextMenuCommandInteraction } interaction */ + async execute(interaction) { const { targetId } = interaction diff --git a/commands-testing/dev-info.js b/commands-testing/dev-info.js index ada9215..83ee3c9 100644 --- a/commands-testing/dev-info.js +++ b/commands-testing/dev-info.js @@ -24,6 +24,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { const test = interaction.options.getString('test'); diff --git a/commands/ban.js b/commands/ban.js index 492d1f4..f277ad6 100644 --- a/commands/ban.js +++ b/commands/ban.js @@ -36,6 +36,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute (interaction) { await interaction.deferReply() diff --git a/commands/check.js b/commands/check.js index a78f2f9..db02613 100644 --- a/commands/check.js +++ b/commands/check.js @@ -18,7 +18,10 @@ module.exports = { .setRequired(true)) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { + await interaction.deferReply({}); const ign = interaction.options.getString("ign"); diff --git a/commands/config.js b/commands/config.js index 52ffaa4..a759e84 100644 --- a/commands/config.js +++ b/commands/config.js @@ -28,6 +28,8 @@ module.exports = { .setDMPermission(false) .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply(); diff --git a/commands/devel.js b/commands/devel.js index 0a4708d..b38d16e 100644 --- a/commands/devel.js +++ b/commands/devel.js @@ -32,6 +32,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { const subcommand = interaction.options.getSubcommand(); diff --git a/commands/forceunverify.js b/commands/forceunverify.js index 235fcb3..bda901b 100644 --- a/commands/forceunverify.js +++ b/commands/forceunverify.js @@ -21,6 +21,8 @@ module.exports = { .setDMPermission(false) .setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { const member1 = interaction.options.getUser('user'); const member = interaction.guild.members.cache.get(member1.id) diff --git a/commands/forceupdate.js b/commands/forceupdate.js index 50fabb9..dff4194 100644 --- a/commands/forceupdate.js +++ b/commands/forceupdate.js @@ -22,6 +22,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply(); diff --git a/commands/forceverify.js b/commands/forceverify.js index 07e4aed..351fb2f 100644 --- a/commands/forceverify.js +++ b/commands/forceverify.js @@ -26,6 +26,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply(); diff --git a/commands/help.js b/commands/help.js index 9c241ce..03ee558 100644 --- a/commands/help.js +++ b/commands/help.js @@ -11,6 +11,8 @@ module.exports = { .setDescription('Help command') .setDMPermission(true), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply({ ephemeral: true }); diff --git a/commands/kick.js b/commands/kick.js index f47751c..da87717 100644 --- a/commands/kick.js +++ b/commands/kick.js @@ -22,6 +22,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.KickMembers) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply() diff --git a/commands/remove.js b/commands/remove.js index ae83165..4509234 100644 --- a/commands/remove.js +++ b/commands/remove.js @@ -25,6 +25,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { const user = interaction.options.getUser('user'); const reason = interaction.options.getString('reason') || "No reason provided." diff --git a/commands/reqs.js b/commands/reqs.js index a37c6c7..473a36f 100644 --- a/commands/reqs.js +++ b/commands/reqs.js @@ -10,6 +10,8 @@ module.exports = { .setName('reqs') .setDescription('Displays the requirements for the guild.'), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply({ ephemeral: true }); diff --git a/commands/send.js b/commands/send.js index f94b76d..1a31b0a 100644 --- a/commands/send.js +++ b/commands/send.js @@ -20,6 +20,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply({ ephemeral: true }); diff --git a/commands/setnick.js b/commands/setnick.js index 01177fc..cfba22f 100644 --- a/commands/setnick.js +++ b/commands/setnick.js @@ -21,6 +21,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.ManageNicknames) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { const user = interaction.options.getUser('user'); diff --git a/commands/setup.js b/commands/setup.js index a869f88..d7118ac 100644 --- a/commands/setup.js +++ b/commands/setup.js @@ -58,6 +58,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { const user = interaction.user; const guild = interaction.guild; diff --git a/commands/slowmode.js b/commands/slowmode.js index cfd3900..416d524 100644 --- a/commands/slowmode.js +++ b/commands/slowmode.js @@ -20,6 +20,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply({ ephermeral: true }); diff --git a/commands/update.js b/commands/update.js index 23fcad3..1cdeb77 100644 --- a/commands/update.js +++ b/commands/update.js @@ -16,6 +16,8 @@ module.exports = { .setDescription('Update your guild rank.') .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply(); diff --git a/commands/verify.js b/commands/verify.js index 1724740..938455f 100644 --- a/commands/verify.js +++ b/commands/verify.js @@ -20,6 +20,8 @@ module.exports = { .setDescription("Your in-game name.")) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply(); diff --git a/commands/whois.js b/commands/whois.js index 5c86f7b..36f5028 100644 --- a/commands/whois.js +++ b/commands/whois.js @@ -19,6 +19,8 @@ module.exports = { .setDefaultMemberPermissions(PermissionFlagsBits.Administrator) .setDMPermission(false), + /** @param { import('discord.js').ChatInputCommandInteraction } interaction */ + async execute(interaction) { await interaction.deferReply();