fix: optionalize recursive type works with nested objects and arrays (#2115)

* fix: get rid of type errors for now

* fix: only 6 type errors left
This commit is contained in:
Yuzu
2022-03-19 09:12:37 +00:00
committed by GitHub
parent cf13780765
commit 81678fbc22
2 changed files with 13 additions and 12 deletions

View File

@@ -67,7 +67,6 @@ export function setupCacheRemovals<B extends Bot>(bot: BotWithCache<B>) {
bot.handlers.GUILD_EMOJIS_UPDATE = function (_, data, shardId) {
const payload = data.d as DiscordGuildEmojisUpdate;
const guild = bot.guilds.get(bot.transformers.snowflake(payload.guild_id));
if (guild) {