mirror of
https://github.com/diamondburned/cchat-discord.git
synced 2024-11-22 14:12:47 +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) {
|
||||
// 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))
|
||||
}
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue