mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
messageDeleted passes channel
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user