mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
fca716423f
commit
75ff4ec2aa
@@ -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 {
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
@@ -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);
|
||||
},
|
||||
}),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user