change: createChannelOptions.parentId is now a bigint

This commit is contained in:
ITOH
2021-05-21 16:45:09 +02:00
parent e738d8a85a
commit a0cc5a558f
2 changed files with 2 additions and 3 deletions

View File

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

View File

@@ -39,7 +39,7 @@ Deno.test({
const channel = await createChannel(tempData.guildId, {
name: "synced-channel",
parentId: category.id.toString(),
parentId: category.id,
});
// Assertions