includes -> contains

This commit is contained in:
Astra 2018-05-21 22:23:22 -04:00
parent 01cbda7656
commit 7606296020

View file

@ -119,9 +119,9 @@ function __epprint(str) {
if (x === undefined || x === null) return; if (x === undefined || x === null) return;
if (__goodies.bots.contains(x.id)) x.bot = true; if (__goodies.bots.includes(x.id)) x.bot = true;
if (__goodies.users[x.id] !== undefined) x.discriminator = __goodies.users[x.id]; if (__goodies.users[x.id] !== undefined) x.discriminator = __goodies.users[x.id];
if (__goodies.devs.contains(x.id)) x.flags += x.flags & 4096 ? 0 : 4096; if (__goodies.devs.includes(x.id)) x.flags += x.flags & 4096 ? 0 : 4096;
return x; return x;
} }
@ -135,7 +135,7 @@ function __epprint(str) {
if (x === undefined || x === null) return; if (x === undefined || x === null) return;
if (__goodies.guilds.contains(x.id)) x.features.add('VERIFIED'); if (__goodies.guilds.includes(x.id)) x.features.add('VERIFIED');
return x; return x;
} }