Reformat using prettier
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
+ };
+};