diff --git a/biome.json b/biome.json index 0288740..6fa66c8 100644 --- a/biome.json +++ b/biome.json @@ -5,6 +5,9 @@ "clientKind": "git", "useIgnoreFile": true }, + "files": { + "ignoreUnknown": true + }, "formatter": { "formatWithErrors": true }, diff --git a/bun.lockb b/bun.lockb index 8318614..1885a40 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index bee909e..e401ce0 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "normalize-url": "8.0.0" }, "devDependencies": { - "@biomejs/biome": "1.4.1", + "@biomejs/biome": "1.5.0", "@tsconfig/bun": "1.0.1", "@tsconfig/strictest": "2.0.2", "bun-types": "1.0.21", diff --git a/src/checks.ts b/src/checks.ts index 709de1b..9f8f32e 100644 --- a/src/checks.ts +++ b/src/checks.ts @@ -1,7 +1,7 @@ import { env } from "bun"; import { consola } from "consola"; import { - Client, + type Client, OAuth2Scopes, PermissionFlagsBits, PermissionsBitField, diff --git a/src/commands.ts b/src/commands.ts index 071e371..30bd88a 100644 --- a/src/commands.ts +++ b/src/commands.ts @@ -3,7 +3,7 @@ import { consola } from "consola"; import { ApplicationCommandType, type ChatInputCommandInteraction, - Client, + type Client, ContextMenuCommandBuilder, type Interaction, type MessageContextMenuCommandInteraction, diff --git a/src/embeds.ts b/src/embeds.ts index 0a7667e..e9407aa 100644 --- a/src/embeds.ts +++ b/src/embeds.ts @@ -1,13 +1,13 @@ -import { drive_v3 } from "@googleapis/drive"; +import type { drive_v3 } from "@googleapis/drive"; import { deepMatch, sleep } from "bun"; import { EmbedBuilder, - Message, - MessageCreateOptions, - MessageEditOptions, + type Message, + type MessageCreateOptions, + type MessageEditOptions, MessageFlags, MessageFlagsBitField, - PartialMessage, + type PartialMessage, isJSONEncodable, } from "discord.js"; import { GaxiosError } from "gaxios"; @@ -48,7 +48,9 @@ const retrieveOldEmbedsMessage = async ( const { channel, id: sourceId, - client: { user: { id: botUserId } }, + client: { + user: { id: botUserId }, + }, } = message; const history = await channel.messages.fetch({ diff --git a/src/main.ts b/src/main.ts index acbedfa..38b8558 100644 --- a/src/main.ts +++ b/src/main.ts @@ -5,9 +5,9 @@ import { Client, Events, GatewayIntentBits, - Message, + type Message, MessageFlags, - PartialMessage, + type PartialMessage, Partials, } from "discord.js"; import { checkBotStatus, checkEnvs } from "./checks";