[stable] contains -> includes

This commit is contained in:
Cynthia Foxwell 2018-05-21 20:21:55 -06:00 committed by GitHub
parent 01cbda7656
commit 41cc1d310f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,9 +119,9 @@ function __epprint(str) {
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.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;
}
@ -135,7 +135,7 @@ function __epprint(str) {
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;
}