mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
* fix: errors * fix: err can be undefined * tests: fix sticker tests * fix: create channel require name * fix: sticker helpers and tests * tests: delete channel after tested guild stickers
10 lines
428 B
TypeScript
10 lines
428 B
TypeScript
import { loadBot } from "../mod.ts";
|
|
import { CACHED_COMMUNITY_GUILD_ID } from "../utils.ts";
|
|
|
|
Deno.test("[Misc] Rate Limit Test", async () => {
|
|
const bot = loadBot();
|
|
const channel = await bot.helpers.createChannel(CACHED_COMMUNITY_GUILD_ID, { name: "test" });
|
|
await Promise.all(Array(10).map(() => bot.helpers.sendMessage(channel.id, { content: "Rate Limit Test" })));
|
|
await bot.helpers.deleteChannel(channel.id);
|
|
});
|