fix: guild-related count

This commit is contained in:
MARCROCK22 2024-03-24 21:14:12 -04:00
parent cb5defc0fd
commit 3d768d90b5

View File

@ -125,7 +125,7 @@ export class GuildRelatedResource<T = any> {
}
count(to: string) {
return this.adapter.count(this.hashId(to));
return to === '*' ? fakePromise(this.keys(to)).then(x => x.length) : this.adapter.count(this.hashId(to));
}
contains(id: string, guild: string) {