👽️ Bug has been fixed on the library
This commit is contained in:
@@ -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];
|
||||||
|
Reference in New Issue
Block a user