From 79ba87ee8e85641b8cfd957445cf5f05d3220128 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 21 Aug 2020 20:03:26 +0200 Subject: [PATCH] Update EditUsers.plugin.js --- Plugins/EditUsers/EditUsers.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 0c1a8238a3..e34a97fe2c 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -6,7 +6,7 @@ var EditUsers = (_ => { return class EditUsers { getName () {return "EditUsers";} - getVersion () {return "3.9.4";} + getVersion () {return "3.9.5";} getAuthor () {return "DevilBro";} @@ -14,7 +14,7 @@ var EditUsers = (_ => { constructor () { this.changelog = { - "improved":[["Local custom status","You can now also use custom emojis for local custom statuses"]] + "fixed":[["UserPopout for non members","Fixed an issue where you could not open the user popout for someone who is no longer a member of the current server"]] }; this.patchedModules = { @@ -411,7 +411,7 @@ var EditUsers = (_ => { if (data) { if (data.name) { e.instance.props.nickname = data.name; - e.instance.props.guildMember = Object.assign({}, e.instance.props.guildMember, {nick: data.name}); + if (e.instance.props.guildMember) e.instance.props.guildMember = Object.assign({}, e.instance.props.guildMember, {nick: data.name}); } if (data.removeStatus || data.status || data.statusEmoji) e.instance.props.customStatusActivity = this.createCustomStatus(data); }