mirror of
https://github.com/diamondburned/cchat-discord.git
synced 2025-11-26 14:17:00 +00:00
Fixed embed updates not being sent
This commit is contained in:
parent
3c1d6f1d3f
commit
cc97c2a69c
|
|
@ -261,7 +261,7 @@ func (ch *Channel) JoinServer(ctx context.Context, ct cchat.MessagesContainer) (
|
||||||
}),
|
}),
|
||||||
ch.session.AddHandler(func(m *gateway.MessageUpdateEvent) {
|
ch.session.AddHandler(func(m *gateway.MessageUpdateEvent) {
|
||||||
// If the updated content is empty. TODO: add embed support.
|
// If the updated content is empty. TODO: add embed support.
|
||||||
if m.ChannelID == ch.id && m.Content != "" {
|
if m.ChannelID == ch.id {
|
||||||
ct.UpdateMessage(NewMessageUpdateContent(m.Message, ch.session))
|
ct.UpdateMessage(NewMessageUpdateContent(m.Message, ch.session))
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue