3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

misc. bugfixes

This commit is contained in:
Dark 2021-06-21 01:36:53 +02:00
parent 0dd6f7182e
commit fb7e926a27
2 changed files with 11 additions and 4 deletions

View file

@ -1258,7 +1258,7 @@ export async function resolveInvite<T extends boolean>(
}
// @ts-ignore: the getInvite() withCounts typings are blergh
const promise = client.getInvite(code, withCounts).catch(() => null);
const promise = client.fetchInvite(code).catch(() => null);
inviteCache.set(key, promise);
return promise as ResolveInviteReturnType<T>;