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