test(api): delete all guilds if the guilds count >= 10

This commit is contained in:
ayntee
2021-01-27 12:16:14 +04:00
parent c46e64d1d5
commit a1e0a4532e
+3 -1
View File
@@ -61,7 +61,9 @@ Deno.test({
eventHandlers.ready = () => {
if (cache.guilds.size >= 10) {
cache.guilds.map((guild) => deleteServer(guild.id));
cache.guilds.map((guild) =>
guild.ownerID === botID && deleteServer(guild.id)
);
}
};