fix: get rid of type errors for now (#2113)

This commit is contained in:
Yuzu
2022-03-18 04:19:55 +00:00
committed by GitHub
parent 44f02d0c65
commit 33bafd1f6c
10 changed files with 37 additions and 28 deletions

View File

@@ -1,3 +1,4 @@
import type { Guild } from "../deps.ts";
import { Bot, DiscordGatewayPayload } from "../deps.ts";
import { BotWithCache } from "./addCacheCollections.ts";
@@ -55,7 +56,7 @@ export async function dispatchRequirements<B extends Bot>(
.getGuild(id, {
counts: true,
})
.catch(console.log));
.catch(console.log)) as Guild;
if (!guild) {
processing.delete(id);