mirror of
https://github.com/danbulant/discord.js
synced 2026-07-08 12:40:50 +00:00
messageDeleted passes channel
This commit is contained in:
parent
c9497a0f75
commit
014d78638e
2 changed files with 14 additions and 14 deletions
|
|
@ -1294,7 +1294,7 @@ var InternalClient = (function () {
|
|||
if (channel) {
|
||||
// potentially blank
|
||||
var msg = channel.messages.get("id", data.id);
|
||||
client.emit("messageDeleted", msg);
|
||||
client.emit("messageDeleted", msg, channel);
|
||||
if (msg) {
|
||||
channel.messages.remove(msg);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1369,7 +1369,7 @@ class InternalClient {
|
|||
if (channel) {
|
||||
// potentially blank
|
||||
var msg = channel.messages.get("id", data.id);
|
||||
client.emit("messageDeleted", msg);
|
||||
client.emit("messageDeleted", msg, channel);
|
||||
if (msg) {
|
||||
channel.messages.remove(msg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue