fix: support for async cache

This commit is contained in:
MARCROCK22 2024-12-06 21:24:57 -04:00
parent e8294fec85
commit 5570ca41fc

View File

@ -43,7 +43,7 @@ export class Guilds extends BaseResource<any, APIGuild | GatewayGuildCreateDispa
} }
override async remove(id: string) { override async remove(id: string) {
const keysChannels = this.cache.channels?.keys(id) ?? []; const keysChannels = (await this.cache.channels?.keys(id)) ?? [];
await this.cache.adapter.bulkRemove( await this.cache.adapter.bulkRemove(
( (
await Promise.all([ await Promise.all([