mautrix / discord

A Matrix-Discord puppeting bridge
https://go.mau.fi/mautrix-discord
GNU Affero General Public License v3.0
253 stars 21 forks source link

`unbridge` causes problems with channel detection later on. #69

Closed GamePlayer-8 closed 1 year ago

GamePlayer-8 commented 1 year ago

Heyo,

After executing !discord unbridge the bot leaves the room & unbridging the channel ID from the discord server.

Although later bot can't find channels from that discord server - needs to be kicked in order to make him work again on that discord server.

tulir commented 1 year ago

What did you do exactly and what do you mean by "can't find channels from that discord server"?

GamePlayer-8 commented 1 year ago

Steps to reproduce:

  1. Invite bot on both discord server & room.
  2. Bridge a room with some dc channel through !discord bridge <ch. ID
  3. <test if it's working>
  4. Unbridge through !discord unbridge.
  5. Reinivite bot into the Matrix room.
  6. Try to bridge the same channel while bot doesn't leaved the dc server.
GamePlayer-8 commented 1 year ago

what do you mean by "can't find channels from that discord server"?

It just says Channel not found..

tulir commented 1 year ago

I found a few bugs in unbridging and bridging, but none of them cause that issue. Are you sure you didn't use some dangerous command like delete-all-portals?

GamePlayer-8 commented 1 year ago

I'm not.

I just compiled the master branch with go & it goes to that problem.