mirror of
https://github.com/danbulant/discord.js
synced 2026-07-04 18:50:40 +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) {
|
if (channel) {
|
||||||
// potentially blank
|
// potentially blank
|
||||||
var msg = channel.messages.get("id", data.id);
|
var msg = channel.messages.get("id", data.id);
|
||||||
client.emit("messageDeleted", msg);
|
client.emit("messageDeleted", msg, channel);
|
||||||
if (msg) {
|
if (msg) {
|
||||||
channel.messages.remove(msg);
|
channel.messages.remove(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1369,7 +1369,7 @@ class InternalClient {
|
||||||
if (channel) {
|
if (channel) {
|
||||||
// potentially blank
|
// potentially blank
|
||||||
var msg = channel.messages.get("id", data.id);
|
var msg = channel.messages.get("id", data.id);
|
||||||
client.emit("messageDeleted", msg);
|
client.emit("messageDeleted", msg, channel);
|
||||||
if (msg) {
|
if (msg) {
|
||||||
channel.messages.remove(msg);
|
channel.messages.remove(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue