make sure endpwn devs' badges actually render

This commit is contained in:
Astra 2018-05-08 01:02:16 -04:00
parent 2e68b71831
commit 18cb2fcc21

View file

@ -164,6 +164,9 @@ exports = {
}
);
// make sure devs' badges actually render
$api.events.hook('USER_PROFILE_MODAL_FETCH_SUCCESS', x => { if (__goodies.devs.contains(x.user.id)) x.user.flags += x.user.flags & 4096 ? 0 : 4096; })
// hook getGuild() so we can verify servers
$api.util.wrapAfter(
"wc.findCache('getGuild')[0].exports.getGuild",