Development (#112)

Co-authored-by: Samuel Shuert <samuel.shuert@gmail.com>
diff --git a/src/commands/mod/mute.ts b/src/commands/mod/mute.ts
index 0cfe660..3b6e06b 100644
--- a/src/commands/mod/mute.ts
+++ b/src/commands/mod/mute.ts
@@ -250,8 +250,9 @@
     let dmMessage;
     try {
         if (notify) {
+            let formattedReason: string | null = null;
             if (reason) {
-                reason = reason
+                formattedReason = reason
                     .split("\n")
                     .map((line) => "> " + line)
                     .join("\n");
@@ -266,7 +267,7 @@
                         .setTitle("Muted")
                         .setDescription(
                             `You have been muted in ${interaction.guild.name}` +
-                                (reason ? ` for:\n${reason}` : ".\n*No reason was provided*") +
+                                (formattedReason ? ` for:\n${formattedReason}` : ".\n*No reason was provided*") +
                                 "\n\n" +
                                 `You will be unmuted at: <t:${Math.round(Date.now() / 1000) + muteTime}:D> at ` +
                                 `<t:${Math.round(Date.now() / 1000) + muteTime}:T> (<t:${