Update src/handlers/guild.ts

This commit is contained in:
Skillz4Killz
2020-11-14 08:26:58 -05:00
committed by GitHub
parent 8d7157cc60
commit 3583ad16c5

View File

@@ -647,7 +647,7 @@ export async function createGuildFromTemplate(
templateCode: string,
data: CreateGuildFromTemplate,
) {
if (cacheHandlers.size("guilds") >= 10) {
if (await cacheHandlers.size("guilds") >= 10) {
throw new Error(
"This function can only be used by bots in less than 10 guilds.",
);