From 4084e82aa026c4f3cda669ab2403a38722cdfd40 Mon Sep 17 00:00:00 2001 From: seeyebe <85168740+seeyebe@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:37:22 +0300 Subject: [PATCH] neovim issue neovim plugin removes comments, so revert that sorry --- .../src/plugins/ModActions/commands/addcase/AddCaseSlashCmd.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/plugins/ModActions/commands/addcase/AddCaseSlashCmd.ts b/backend/src/plugins/ModActions/commands/addcase/AddCaseSlashCmd.ts index 16322a22..24cb2e42 100644 --- a/backend/src/plugins/ModActions/commands/addcase/AddCaseSlashCmd.ts +++ b/backend/src/plugins/ModActions/commands/addcase/AddCaseSlashCmd.ts @@ -39,7 +39,8 @@ export const AddCaseSlashCmd = modActionsSlashCmd({ async run({ interaction, options, pluginData }) { await interaction.deferReply({ ephemeral: true }); const attachments = retrieveMultipleOptions(NUMBER_ATTACHMENTS_CASE_CREATION, options, "attachment"); - + + // The moderator who did the action is the message author or, if used, the specified -mod let mod = interaction.member as GuildMember; const canActAsOther = await hasPermission(pluginData, "can_act_as_other", { channel: interaction.channel,