From c69b87442fa03169a583d7c1c8a5e9dfffaab09d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 9 Jan 2024 15:04:56 +0900 Subject: [PATCH] chore(deps): update dependency @biomejs/biome to v1.5.0 (#29) * chore(deps): update dependency @biomejs/biome to v1.5.0 * chore: enable files.ignoreUnknown in biome.json * fix: run biome --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: risu729 <79110363+risu729@users.noreply.github.com> --- biome.json | 3 +++ bun.lockb | Bin 42154 -> 42960 bytes package.json | 2 +- src/checks.ts | 2 +- src/commands.ts | 2 +- src/embeds.ts | 14 ++++++++------ src/main.ts | 4 ++-- 7 files changed, 16 insertions(+), 11 deletions(-) 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 8318614b3f147196ae405cbb66eaff5bc9d4293d..1885a4060d54c2757ae8c8c5fc0d7336293046c9 100755 GIT binary patch delta 1829 zcmZ2=lIg;ErU`nQ7KUfeNPo|tC3|a+d6j4N<86YuS;ZH97^7C7;(2Cof7f9-0~i!e z43}rpE!bEQz|8wumVp6?8g2jy>CH!(tCjg7X~`TdldT7l(D8 z{UE6^yDcYO=+5t^sEg|qqLmyDJ4mhQi^m4tIzuMlgWa66oqlsxs@~JERCQMTnUIn@Y z=DKWT*SV?BIg}I=jQ3vg5knpdAmfKJ#5xZRW+3nFk2`VQ*QE=?+n;n7GQuf zFyt~Y)WeNtx&PpIw)mHax1vgt`LdRMTm9yfQ$<*`m%UPUwaVw5%4eGV0hkSU1m&;+^P|RO4t|Zz4}x|u5hNU$xC)?-Q7N2kn`i6#?>_{9TnI`D zj6e*^*&qPpGXdEX!6M*T1*>5O@+U#X@+Ke56Sf6~9!N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Ib)Pu-O1jM+@&%|Se)1tKK01VVG!lv>y+7*2jrD!F+@o2x9?T^|-t zm@K$dZ}OC-Qj-(sDowtyR1-?`PS#ka1ZP(+lY_I5EmMHAMVHI41Kp-ql3q3WVBib@ Dh4qts 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";