From a0cc5a558fafd867fe035f2fd71244d237263358 Mon Sep 17 00:00:00 2001 From: ITOH Date: Fri, 21 May 2021 16:45:09 +0200 Subject: [PATCH] change: createChannelOptions.parentId is now a bigint --- tests/channels/category_children.ts | 3 +-- tests/channels/is_channel_synced.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/channels/category_children.ts b/tests/channels/category_children.ts index a649e066f..78901d894 100644 --- a/tests/channels/category_children.ts +++ b/tests/channels/category_children.ts @@ -1,7 +1,6 @@ import { cache } from "../../src/cache.ts"; import { categoryChildren, createChannel } from "../../src/helpers/mod.ts"; import { DiscordChannelTypes } from "../../src/types/channels/channel_types.ts"; -import { bigintToSnowflake } from "../../src/util/bigint.ts"; import { assertExists } from "../deps.ts"; import { delayUntil } from "../util/delay_until.ts"; import { defaultTestOptions, tempData } from "../ws/start_bot.ts"; @@ -30,7 +29,7 @@ Deno.test({ channelsToCreate.map((num) => createChannel(tempData.guildId, { name: `Discordeno-test-${num}`, - parentId: bigintToSnowflake(category.id), + parentId: category.id, }) ), ); diff --git a/tests/channels/is_channel_synced.ts b/tests/channels/is_channel_synced.ts index 6a4d96db7..aca9f31d0 100644 --- a/tests/channels/is_channel_synced.ts +++ b/tests/channels/is_channel_synced.ts @@ -39,7 +39,7 @@ Deno.test({ const channel = await createChannel(tempData.guildId, { name: "synced-channel", - parentId: category.id.toString(), + parentId: category.id, }); // Assertions