1
0
forked from lug/matterbridge

Switch to discordgo upstream again (#1759)

* Switch to upstream discordgo again

* Fix discord api changes
This commit is contained in:
Wim
2022-03-12 17:06:39 +01:00
committed by GitHub
parent 9c203327c0
commit e4c0ca0f48
43 changed files with 5151 additions and 2363 deletions

View File

@@ -2,8 +2,8 @@ package bdiscord
import (
"github.com/42wim/matterbridge/bridge/config"
"github.com/bwmarrin/discordgo"
"github.com/davecgh/go-spew/spew"
"github.com/matterbridge/discordgo"
)
func (b *Bdiscord) messageDelete(s *discordgo.Session, m *discordgo.MessageDelete) { //nolint:unparam
@@ -56,7 +56,7 @@ func (b *Bdiscord) messageUpdate(s *discordgo.Session, m *discordgo.MessageUpdat
return
}
// only when message is actually edited
if m.Message.EditedTimestamp != "" {
if m.Message.EditedTimestamp != nil {
b.Log.Debugf("Sending edit message")
m.Content += b.GetString("EditSuffix")
msg := &discordgo.MessageCreate{