From 4e79e39e22673024aba615faaf8e85e62ca43ae0 Mon Sep 17 00:00:00 2001 From: MrWasdennnoch Date: Fri, 25 Sep 2020 23:42:49 +0200 Subject: [PATCH] fix(Action): Sanity-Check if Discord includes all required data (#4841) --- src/client/actions/Action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/actions/Action.js b/src/client/actions/Action.js index 951f8da06..2ac32ed3c 100644 --- a/src/client/actions/Action.js +++ b/src/client/actions/Action.js @@ -90,7 +90,7 @@ class GenericAction { } getUserFromMember(data) { - if (data.guild_id) { + if (data.guild_id && data.member && data.member.user) { const guild = this.client.guilds.cache.get(data.guild_id); if (guild) { const member = this.getMember(data.member, guild);