diff --git a/src/features/commands.ts b/src/features/commands.ts index 526fa252..6e6a9ade 100644 --- a/src/features/commands.ts +++ b/src/features/commands.ts @@ -1,6 +1,12 @@ /* eslint-disable @typescript-eslint/no-use-before-define */ import fetch from "node-fetch"; -import { APIEmbed, ChannelType, EmbedType, Message, TextChannel } from "discord.js"; +import { + APIEmbed, + ChannelType, + EmbedType, + Message, + TextChannel, +} from "discord.js"; import cooldown from "./cooldown"; import { ChannelHandlers } from "../types"; import { isStaff } from "../helpers/discord"; @@ -1172,18 +1178,18 @@ const commands: ChannelHandlers = { const generateReactDocsErrorEmbeds = (search: string): APIEmbed[] => { return [ - { - type: EmbedType.Rich, - description: `Could not find anything on React documentation for **'${search}'**`, - color: EMBED_COLOR, - author: { - name: "React documentation", - icon_url: - "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/1150px-React-icon.svg.png", - url: "https://react.dev/", - }, + { + type: EmbedType.Rich, + description: `Could not find anything on React documentation for **'${search}'**`, + color: EMBED_COLOR, + author: { + name: "React documentation", + icon_url: + "https://upload.wikimedia.org/wikipedia/commons/thumb/a/a7/React-icon.svg/1150px-React-icon.svg.png", + url: "https://react.dev/", }, - ]; + }, + ]; }; export default commands;