mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-15 19:08:17 +00:00
change: prettier code
This commit is contained in:
committed by
GitHub Action
parent
ad33d06623
commit
bdfe1890e2
@@ -2,17 +2,23 @@ import { Bot } from "../../../src/bot.ts";
|
|||||||
import { CreateGuildBan } from "../../../src/types/mod.ts";
|
import { CreateGuildBan } from "../../../src/types/mod.ts";
|
||||||
|
|
||||||
export async function banTest(bot: Bot, t: Deno.TestContext, guildId: bigint, id: bigint, options?: CreateGuildBan) {
|
export async function banTest(bot: Bot, t: Deno.TestContext, guildId: bigint, id: bigint, options?: CreateGuildBan) {
|
||||||
await bot.helpers.ban(guildId, 456226577798135808n)
|
await bot.helpers.ban(guildId, 456226577798135808n);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getBansTest(bot: Bot, t: Deno.TestContext, guildId: bigint) {
|
export async function getBansTest(bot: Bot, t: Deno.TestContext, guildId: bigint) {
|
||||||
await bot.helpers.getBans(guildId)
|
await bot.helpers.getBans(guildId);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function banTestWReason(bot: Bot, t: Deno.TestContext, guildId: bigint, id: bigint, options?: CreateGuildBan) {
|
export async function banTestWReason(
|
||||||
await bot.helpers.ban(guildId, 456226577798135808n, {reason: "Blame Wolf"})
|
bot: Bot,
|
||||||
|
t: Deno.TestContext,
|
||||||
|
guildId: bigint,
|
||||||
|
id: bigint,
|
||||||
|
options?: CreateGuildBan
|
||||||
|
) {
|
||||||
|
await bot.helpers.ban(guildId, 456226577798135808n, { reason: "Blame Wolf" });
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function unbanTest(bot: Bot, t: Deno.TestContext, guildId: bigint, id: bigint) {
|
export async function unbanTest(bot: Bot, t: Deno.TestContext, guildId: bigint, id: bigint) {
|
||||||
await bot.helpers.unban(guildId, 456226577798135808n)
|
await bot.helpers.unban(guildId, 456226577798135808n);
|
||||||
}
|
}
|
||||||
+1
-1
@@ -546,7 +546,7 @@ Deno.test("[Bot] - Starting Tests", async (t) => {
|
|||||||
t.step({
|
t.step({
|
||||||
name: "[member] ban member from guild without reason",
|
name: "[member] ban member from guild without reason",
|
||||||
fn: async (t) => {
|
fn: async (t) => {
|
||||||
await banTestWReason(bot, t, guild.id, 456226577798135808n, {reason: "Blame Wolf"});
|
await banTestWReason(bot, t, guild.id, 456226577798135808n, { reason: "Blame Wolf" });
|
||||||
},
|
},
|
||||||
...sanitizeMode,
|
...sanitizeMode,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user