change: prettier code

This commit is contained in:
Skillz4Killz
2021-11-05 15:17:08 +00:00
committed by GitHub Action
parent fca716423f
commit 75ff4ec2aa
3 changed files with 5 additions and 5 deletions

View File

@@ -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 {

View File

@@ -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")) {

View File

@@ -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);
},
}),
]);