Skip to content

Commit

Permalink
feat: fix prettier lint (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristersd authored Feb 6, 2024
1 parent c821515 commit ac74239
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions src/features/commands.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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;

0 comments on commit ac74239

Please sign in to comment.