matterbridge icon indicating copy to clipboard operation
matterbridge copied to clipboard

Discord messages empty content

Open murtonen opened this issue 1 year ago • 1 comments

My bridge had been running perfectly for around a year, and suddenly it stopped working around a month ago.

When I enabled debug, I noticed that messages from Discord to IRC were showing as empty.

[362984] DEBUG discord: [messageCreate:bridge/discord/handlers.go:110] == Receiving event &discordgo.Message{ID:"1017878706166968390", ChannelID:"706853326741831741", GuildID:"183665902254817280", Content:"", Timestamp:time.Date(2022, time.September, 9, 19, 26, 34, 822000000, time.Location("")), EditedTimestamp:, MentionRoles:[]string{}, TTS:false, MentionEveryone:false, Author:(*discordgo.User)(0x4b08360), Attachments:[]*discordgo.MessageAttachment{}, Components:[]discordgo.MessageComponent{}, Embeds:[]*discordgo.MessageEmbed{}, Mentions:[]*discordgo.User{}, Reactions:[]*discordgo.MessageReactions(nil), Pinned:false, Type:0, WebhookID:"", Member:(*discordgo.Member)(0x4b08300), MentionChannels:[]*discordgo.Channel(nil), Activity:(*discordgo.MessageActivity)(nil), Application:(*discordgo.MessageApplication)(nil), MessageReference:(*discordgo.MessageReference)(nil), ReferencedMessage:(*discordgo.Message)(nil), Interaction:(*discordgo.MessageInteraction)(nil), Flags:0, Thread:(*discordgo.Channel)(nil), StickerItems:[]*discordgo.Sticker(nil)}

Messages from IRC to Discord are working fine still.

Tried upgrading to latest version (1.25.2), but that didn't help. Running the matterbridge-1.25.2-linux-armv6 binary on a Raspian.

Possibly something changed on Discord side, since nothing on my configuration or server has changed for a long time.

Config: [discord.mydiscord] Token="" Server="" RemoteNickFormat="{NICK}" AutoWebhooks=true UseLocalAvatar=["irc.myirc"]

[irc.myirc] Server="irc.elisa.fi:6667" Nick="" RemoteNickFormat="<{NICK}> "

[[gateway]] name="gateway1" enable=true

[[gateway.inout]] account="discord.mydiscord" channel="irc"

[[gateway.inout]] account="irc.myirc" channel=""

murtonen avatar Sep 09 '22 19:09 murtonen

Weird thing is that if I tag the bot in Discord with @ircbot, then the messages will to through to IRC.

[363426] DEBUG discord: [messageCreate:bridge/discord/handlers.go:161] <= Sending message from X on discord.mydiscord to gateway [363426] DEBUG discord: [messageCreate:bridge/discord/handlers.go:162] <= Message is config.Message{Text:"@ircBot test", Channel:"irc", Username:"X", UserID:"X", Avatar:"https://cdn.discordapp.com/avatars/183665746914705408/413809fcaf37389d8ba95e2a82d7d252.jpg", Account:"discord.mydiscord", Event:"", Protocol:"", Gateway:"", ParentID:"", Timestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), ID:"1017880560355520573", Extra:map[string][]interface {}(nil)} [363426] DEBUG gateway: [SendMessage:gateway/gateway.go:499] => Sending config.Message{Text:"@ircBot test", Channel:"X", Username:"X", UserID:"X", Avatar:"https://cdn.discordapp.com/avatars/183665746914705408/413809fcaf37389d8ba95e2a82d7d252.jpg", Account:"discord.mydiscord", Event:"", Protocol:"discord", Gateway:"gateway1", Pare

murtonen avatar Sep 09 '22 19:09 murtonen

I have the same issue, but with bridging discord with matrix and whatsapp. When i @ the bot, it goes through but all other messages dont.

gi-yt avatar Oct 04 '22 06:10 gi-yt

@42wim any clue why this is happening?

gi-yt avatar Oct 04 '22 06:10 gi-yt

I have the same issue, but with bridging discord with matrix and whatsapp. When i @ the bot, it goes through but all other messages dont.

I did a complete reset and re-install and it seemed to fix it. Never found out what suddenly broke it.

murtonen avatar Oct 04 '22 15:10 murtonen

I could try that too but I really don't want to cross-compile for my Pi again lol, will report if that fixes anything once i re-install...

gi-yt avatar Oct 05 '22 02:10 gi-yt

I just use the pre-compiled binary for my Pi. Works just fine.

murtonen avatar Oct 05 '22 08:10 murtonen

Well, I need whatsappmulti which isn't distributed in main..

gi-yt avatar Oct 05 '22 11:10 gi-yt

found the issue, i had to allow all privileged intent gateways on the discord side

gi-yt avatar Oct 13 '22 08:10 gi-yt