mirror of
https://github.com/danbulant/discord.js
synced 2026-06-15 12:41:24 +00:00
fix(Action): Sanity-Check if Discord includes all required data (#4841)
This commit is contained in:
parent
32fe72f909
commit
4e79e39e22
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue