Skip to content

Commit

Permalink
fix(Action): Sanity-Check if Discord includes all required data (#4841)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasdennnoch committed Sep 25, 2020
1 parent 32fe72f commit 4e79e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/actions/Action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4e79e39

Please sign in to comment.