mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-04 22:16:08 +00:00
fix: guild-related count
This commit is contained in:
parent
cb5defc0fd
commit
3d768d90b5
2
src/cache/resources/default/guild-related.ts
vendored
2
src/cache/resources/default/guild-related.ts
vendored
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user