Development (#112)

Co-authored-by: Samuel Shuert <samuel.shuert@gmail.com>
diff --git a/src/commands/mod/ban.ts b/src/commands/mod/ban.ts
index 78f936c..3ed7f14 100644
--- a/src/commands/mod/ban.ts
+++ b/src/commands/mod/ban.ts
@@ -86,8 +86,9 @@
     const config = await client.database.guilds.read(interaction.guild.id);
     try {
         if (notify) {
+            let formattedReason: string | null = null;
             if (reason) {
-                reason = reason
+                formattedReason = reason
                     .split("\n")
                     .map((line) => "> " + line)
                     .join("\n");
@@ -102,7 +103,7 @@
                         .setTitle("Banned")
                         .setDescription(
                             `You have been banned from ${interaction.guild.name}` +
-                                (reason ? ` for:\n${reason}` : ".\n*No reason was provided.*")
+                                (formattedReason ? ` for:\n${formattedReason}` : ".\n*No reason was provided.*")
                         )
                         .setStatus("Danger")
                 ],