Websocket: Provide channel id for message edit / del.

This commit is contained in:
Paul
2021-05-25 14:06:23 +01:00
parent 67b9b8ceee
commit 7c7943b9f6
2 changed files with 5 additions and 0 deletions

View File

@@ -226,6 +226,7 @@ impl Message {
let channel = self.channel.clone();
ClientboundNotification::MessageUpdate {
id: self.id.clone(),
channel: self.channel.clone(),
data,
}
.publish(channel);
@@ -262,6 +263,7 @@ impl Message {
{
ClientboundNotification::MessageUpdate {
id,
channel: channel.clone(),
data: json!({ "embeds": embeds }),
}
.publish(channel);
@@ -293,6 +295,7 @@ impl Message {
let channel = self.channel.clone();
ClientboundNotification::MessageDelete {
id: self.id.clone(),
channel: self.channel.clone()
}
.publish(channel);