Files
discordeno/tests/misc/rateLimit.test.ts
LTS20050703 39a806ff9c fix: errors (#2496)
* 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
2022-10-01 12:14:59 -04:00

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