From 75ff4ec2aa8ce4f5dde8ce760f5558503e59528b Mon Sep 17 00:00:00 2001 From: Skillz4Killz Date: Fri, 5 Nov 2021 15:17:08 +0000 Subject: [PATCH] change: prettier code --- src/bot.ts | 2 +- src/rest/simplify_url.ts | 2 +- tests/mod.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index 07d00846a..a1dc30d46 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -214,7 +214,7 @@ export function createRestManager(options: CreateRestManagerOptions) { const version = options.version || "9"; if (options.customUrl) { - baseEndpoints.BASE_URL = `${options.customUrl}/v${version}` + baseEndpoints.BASE_URL = `${options.customUrl}/v${version}`; } return { diff --git a/src/rest/simplify_url.ts b/src/rest/simplify_url.ts index 4e3078f40..aee44d102 100644 --- a/src/rest/simplify_url.ts +++ b/src/rest/simplify_url.ts @@ -9,7 +9,7 @@ export function simplifyUrl(url: string, method: string) { .replace(/\/([a-z-]+)\/(?:[0-9]{17,19})/g, function (match, p) { return ["channels", "guilds"].includes(p) ? match : `/${p}/skillzPrefersID`; }) - .replace(/\/reactions\/[^/]+/g, "/reactions/skillzPrefersID") + .replace(/\/reactions\/[^/]+/g, "/reactions/skillzPrefersID"); // GENERAL /reactions and /reactions/emoji/@me share the buckets if (route.includes("/reactions")) { diff --git a/tests/mod.ts b/tests/mod.ts index ad6f99956..49d5f9288 100644 --- a/tests/mod.ts +++ b/tests/mod.ts @@ -575,18 +575,18 @@ Deno.test({ name: "[channel] delete a channel overwrite", async fn() { await deleteChannelOverwriteTests(bot, guild.id, t); - } + }, }), t.step({ name: "[channel] edit a channel w/o a reason", async fn() { await editChannelTests(bot, guild.id, {}, t); - } + }, }), t.step({ name: "[channel] edit a channel w/ a reason", async fn() { - await editChannelTests(bot, guild.id, { reason: "Blame wolf"}, t); + await editChannelTests(bot, guild.id, { reason: "Blame wolf" }, t); }, }), ]);