From 882c67bd6c11ee6c1bfd04b4a47fc771d27ac4b0 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Mon, 21 May 2018 20:20:11 -0600 Subject: [PATCH] contains -> includes --- plugin/customizer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/customizer.js b/plugin/customizer.js index 13b3c4c..a82d9ce 100644 --- a/plugin/customizer.js +++ b/plugin/customizer.js @@ -85,16 +85,16 @@ exports = { if (x === undefined || x === null) return; - if (endpwn.customizer.data.bots.contains(x.id)) x.bot = true; + if (endpwn.customizer.data.bots.includes(x.id)) x.bot = true; if (endpwn.customizer.data.users[x.id] !== undefined) x.discriminator = endpwn.customizer.data.users[x.id]; - if (endpwn.customizer.data.devs.contains(x.id)) x.flags += x.flags & 4096 ? 0 : 4096; + if (endpwn.customizer.data.devs.includes(x.id)) x.flags += x.flags & 4096 ? 0 : 4096; return x; } ); // make sure devs' badges actually render - $api.events.hook('USER_PROFILE_MODAL_FETCH_SUCCESS', x => { if (endpwn.customizer.data.devs.contains(x.user.id)) x.user.flags += x.user.flags & 4096 ? 0 : 4096; }) + $api.events.hook('USER_PROFILE_MODAL_FETCH_SUCCESS', x => { if (endpwn.customizer.data.devs.includes(x.user.id)) x.user.flags += x.user.flags & 4096 ? 0 : 4096; }) // hook getGuild() so we can verify servers $api.util.wrapAfter( @@ -104,7 +104,7 @@ exports = { if (x === undefined || x === null) return; - if (endpwn.customizer.data.guilds.contains(x.id)) x.features.add('VERIFIED'); + if (endpwn.customizer.data.guilds.includes(x.id)) x.features.add('VERIFIED'); return x; } @@ -112,4 +112,4 @@ exports = { } -} \ No newline at end of file +}