diff --git a/src/commands/nucleus/guide.ts b/src/commands/nucleus/guide.ts
index 5f2cde2..507730b 100644
--- a/src/commands/nucleus/guide.ts
+++ b/src/commands/nucleus/guide.ts
@@ -7,17 +7,17 @@
 
 const command = (builder: SlashCommandSubcommandBuilder) =>
     builder
-    .setName("guide")
-    .setDescription("Shows the welcome guide for the bot")
+        .setName("guide")
+        .setDescription("Shows the welcome guide for the bot");
 
 
 const callback = async (interaction) => {
-    guide(interaction.guild, interaction)
-}
+    guide(interaction.guild, interaction);
+};
 
 const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
-    return true
-}
+    return true;
+};
 
 export { command };
 export { callback };
diff --git a/src/commands/nucleus/invite.ts b/src/commands/nucleus/invite.ts
index 96e1449..5a1ea59 100644
--- a/src/commands/nucleus/invite.ts
+++ b/src/commands/nucleus/invite.ts
@@ -2,12 +2,12 @@
 import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
 import { WrappedCheck } from "jshaiku";
 import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
-import client from "../../utils/client.js"
+import client from "../../utils/client.js";
 
 const command = (builder: SlashCommandSubcommandBuilder) =>
     builder
-    .setName("invite")
-    .setDescription("Invites Nucleus to your server")
+        .setName("invite")
+        .setDescription("Invites Nucleus to your server");
 
 const callback = async (interaction: CommandInteraction): Promise<any> => {
     interaction.reply({embeds: [new EmojiEmbed()
@@ -20,11 +20,11 @@
         .setStyle("LINK")
         .setURL(`https://discord.com/api/oauth2/authorize?client_id=${client.user.id}&permissions=295157886134&scope=bot%20applications.commands`)
     ])], ephemeral: true});
-}
+};
 
 const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
     return true;
-}
+};
 
 export { command };
 export { callback };
diff --git a/src/commands/nucleus/ping.ts b/src/commands/nucleus/ping.ts
index 6353843..c153e19 100644
--- a/src/commands/nucleus/ping.ts
+++ b/src/commands/nucleus/ping.ts
@@ -1,21 +1,21 @@
-import { LoadingEmbed } from './../../utils/defaultEmbeds.js';
+import { LoadingEmbed } from "./../../utils/defaultEmbeds.js";
 import { CommandInteraction } from "discord.js";
 import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
 import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
 import { WrappedCheck } from "jshaiku";
-import client from "../../utils/client.js"
+import client from "../../utils/client.js";
 
 const command = (builder: SlashCommandSubcommandBuilder) =>
     builder
-    .setName("ping")
-    .setDescription("Gets the bot's ping time")
+        .setName("ping")
+        .setDescription("Gets the bot's ping time");
 
 const callback = async (interaction: CommandInteraction): Promise<any> => {
     // WEBSOCKET | Nucleus -> Discord
     // EDITING   | Nucleus -> discord -> nucleus | edit time / 2
-    let initial = new Date().getTime();
+    const initial = new Date().getTime();
     await interaction.reply({embeds: LoadingEmbed, ephemeral: true});
-    let ping = new Date().getTime() - initial;
+    const ping = new Date().getTime() - initial;
     interaction.editReply({embeds: [new EmojiEmbed()
         .setTitle("Ping")
         .setDescription(
@@ -25,12 +25,12 @@
         )
         .setEmoji("CHANNEL.SLOWMODE.OFF")
         .setStatus("Danger")
-    ]})
-}
+    ]});
+};
 
 const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
     return true;
-}
+};
 
 export { command };
 export { callback };
diff --git a/src/commands/nucleus/premium.ts b/src/commands/nucleus/premium.ts
index 9d273b9..c8c0f76 100644
--- a/src/commands/nucleus/premium.ts
+++ b/src/commands/nucleus/premium.ts
@@ -5,8 +5,8 @@
 
 const command = (builder: SlashCommandSubcommandBuilder) =>
     builder
-    .setName("premium")
-    .setDescription("Information about Nucleus Premium")
+        .setName("premium")
+        .setDescription("Information about Nucleus Premium");
 
 const callback = async (interaction: CommandInteraction): Promise<any> => {
     interaction.reply({embeds: [new EmojiEmbed()
@@ -20,11 +20,11 @@
         .setEmoji("NUCLEUS.LOGO")
         .setStatus("Danger")
     ], ephemeral: true});
-}
+};
 
 const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
     return true;
-}
+};
 
 export { command };
 export { callback };
diff --git a/src/commands/nucleus/stats.ts b/src/commands/nucleus/stats.ts
index beea94b..98b87be 100644
--- a/src/commands/nucleus/stats.ts
+++ b/src/commands/nucleus/stats.ts
@@ -2,12 +2,12 @@
 import { SlashCommandSubcommandBuilder } from "@discordjs/builders";
 import { WrappedCheck } from "jshaiku";
 import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
-import client from "../../utils/client.js"
+import client from "../../utils/client.js";
 
 const command = (builder: SlashCommandSubcommandBuilder) =>
     builder
-    .setName("stats")
-    .setDescription("Gets the bot's stats")
+        .setName("stats")
+        .setDescription("Gets the bot's stats");
 
 const callback = async (interaction: CommandInteraction): Promise<any> => {
     interaction.reply({
@@ -22,11 +22,11 @@
 
         ], ephemeral: true
     });
-}
+};
 
 const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
     return true;
-}
+};
 
 export { command };
 export { callback };
diff --git a/src/commands/nucleus/suggest.ts b/src/commands/nucleus/suggest.ts
index 0c596ff..238e7d5 100644
--- a/src/commands/nucleus/suggest.ts
+++ b/src/commands/nucleus/suggest.ts
@@ -3,55 +3,55 @@
 import { WrappedCheck } from "jshaiku";
 import confirmationMessage from "../../utils/confirmationMessage.js";
 import EmojiEmbed from "../../utils/generateEmojiEmbed.js";
-import client from "../../utils/client.js"
+import client from "../../utils/client.js";
 
 const command = (builder: SlashCommandSubcommandBuilder) =>
     builder
-    .setName("suggest")
-    .setDescription("Sends a suggestion to the developers")
-    .addStringOption(option => option.setName("suggestion").setDescription("The suggestion to send").setRequired(true))
+        .setName("suggest")
+        .setDescription("Sends a suggestion to the developers")
+        .addStringOption(option => option.setName("suggestion").setDescription("The suggestion to send").setRequired(true));
 
 const callback = async (interaction: CommandInteraction): Promise<any> => {
-    const { renderUser } = client.logger
-    let suggestion = interaction.options.getString("suggestion");
-    let confirmation = await new confirmationMessage(interaction)
+    const { renderUser } = client.logger;
+    const suggestion = interaction.options.getString("suggestion");
+    const confirmation = await new confirmationMessage(interaction)
         .setEmoji("ICONS.OPP.ADD")
         .setTitle("Suggest")
         .setDescription(`**Suggestion:**\n> ${suggestion}\n`
-        + `Your username and ID will also be sent with your suggestion.\n\nAre you sure you want to send this suggestion?`)
+        + "Your username and ID will also be sent with your suggestion.\n\nAre you sure you want to send this suggestion?")
         .setColor("Danger")
         .setInverted(true)
-    .send()
-    if (confirmation.cancelled) return
+        .send();
+    if (confirmation.cancelled) return;
     if (confirmation.success) {
-        await (client.channels.cache.get('955161206459600976') as Discord.TextChannel).send({
+        await (client.channels.cache.get("955161206459600976") as Discord.TextChannel).send({
             embeds: [
                 new EmojiEmbed()
-                    .setTitle(`Suggestion`)
+                    .setTitle("Suggestion")
                     .setDescription(`**From:** ${renderUser(interaction.member.user)}\n**Suggestion:**\n> ${suggestion}`)
                     .setStatus("Danger")
                     .setEmoji("NUCLEUS.LOGO")
             ]
-        })
+        });
         await interaction.editReply({embeds: [new EmojiEmbed()
             .setEmoji("ICONS.ADD")
-            .setTitle(`Suggest`)
+            .setTitle("Suggest")
             .setDescription("Your suggestion was sent successfully")
             .setStatus("Success")
-        ], components: []})
+        ], components: []});
     } else {
         await interaction.editReply({embeds: [new EmojiEmbed()
             .setEmoji("ICONS.OPP.ADD")
-            .setTitle(`Suggest`)
+            .setTitle("Suggest")
             .setDescription("No changes were made")
             .setStatus("Danger")
-        ], components: []})
+        ], components: []});
     }
-}
+};
 
 const check = (interaction: CommandInteraction, defaultCheck: WrappedCheck) => {
     return true;
-}
+};
 
 export { command };
 export { callback };
