mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 03:00:35 +00:00
fix(Message): referenced_message is null, not undefined
This commit is contained in:
parent
065e89337e
commit
939c495ebb
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ class Message extends Base {
|
||||||
}
|
}
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
if ('referenced_message' in data) {
|
if (data.referenced_message) {
|
||||||
this.channel.messages.add(data.referenced_message);
|
this.channel.messages.add(data.referenced_message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue