mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-03 01:10:07 +00:00
test(api): delete all guilds if the guilds count >= 10
This commit is contained in:
@@ -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)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user