1
0

👽️ Bug has been fixed on the library

This commit is contained in:
2022-01-06 01:34:02 +01:00
parent 27ffd037f1
commit 0974a6a7af

View File

@@ -9,10 +9,7 @@ async function hasVip(channel: string, username: string): Promise<boolean> {
} }
if (!cache[channel]) { if (!cache[channel]) {
const vips = await chatClient.getVips(channel); cache[channel] = await chatClient.getVips(channel);
// * last VIP has a "." at the end of the username (bug on library?)
cache[channel] = vips.map(vip => vip.replace(/\.$/, ""));
setTimeout(() => { setTimeout(() => {
delete cache[channel]; delete cache[channel];