diff --git a/src/utils/getCommandDataByName.ts b/src/utils/getCommandDataByName.ts
index da3e54b..46f4362 100644
--- a/src/utils/getCommandDataByName.ts
+++ b/src/utils/getCommandDataByName.ts
@@ -1,22 +1,20 @@
 import type Discord from "discord.js";
 import client from "./client.js";
 
-
 export const getCommandMentionByName = (name: string): string => {
-    const split = name.replaceAll("/", " ").split(" ")
+    const split = name.replaceAll("/", " ").split(" ");
     const commandName: string = split[0]!;
 
     const filterCommand = (command: Discord.ApplicationCommand) => command.name === commandName;
 
-    const command = client.fetchedCommands.filter(c => filterCommand(c))
+    const command = client.fetchedCommands.filter((c) => filterCommand(c));
     if (command.size === 0) return `\`/${name.replaceAll("/", " ")}\``;
     const commandID = command.first()!.id;
     return `</${split.join(" ")}:${commandID}>`;
-}
+};
 
-export const getCommandByName = (name: string): {name: string, description: string, mention: string} => {
-
-    const split = name.replaceAll(" ", "/")
+export const getCommandByName = (name: string): { name: string; description: string; mention: string } => {
+    const split = name.replaceAll(" ", "/");
     const command = client.commands["commands/" + split]!;
     // console.log(command)
     const mention = getCommandMentionByName(name);
@@ -24,5 +22,5 @@
         name: command[1].name,
         description: command[1].description,
         mention: mention
-    }
-}
\ No newline at end of file
+    };
+};
