mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 00:40:07 +00:00
11 lines
303 B
TypeScript
11 lines
303 B
TypeScript
import { assertExists, assertEquals } from "../../deps.ts";
|
|
import { bot } from "../../mod.ts";
|
|
|
|
export async function getGuildTests(guildId: bigint) {
|
|
const fetchedGuild = await bot.helpers.getGuild(guildId);
|
|
|
|
// Assertions
|
|
assertExists(fetchedGuild);
|
|
assertEquals(fetchedGuild.id, guildId);
|
|
}
|