mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 09:20:08 +00:00
tests: rate limit test (#2485)
* tests: rate limit test * tests/misc: rateLimit.test promise.all
This commit is contained in:
9
tests/misc/rateLimit.test.ts
Normal file
9
tests/misc/rateLimit.test.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
await Promise.all(Array(10).map(() => bot.helpers.sendMessage(channel.id, { content: "Rate Limit Test" })));
|
||||
await bot.helpers.deleteChannel(channel.id);
|
||||
});
|
||||
Reference in New Issue
Block a user