matrix-org / matrix-appservice-discord

A bridge between Matrix and Discord.
Apache License 2.0
805 stars 151 forks source link

Bridge should unbridge deleted servers/channels automatically #524

Open turt2live opened 5 years ago

turt2live commented 5 years ago

Otherwise when the server/channel goes missing the room is unable to re-bridge to anything else:

Half-Shot commented 5 years ago

I'm surprised this isn't handled by https://github.com/Half-Shot/matrix-appservice-discord/blob/master/src/channelsyncroniser.ts#L122

paralin commented 2 years ago

If you delete the discord server that the bot was connected to, and then try to "!discord unbridge" it returns an error "guild not found". But there's then no way to re-link the channel again, it says "channel is already bridged" when I try to re-bridge it.

So I guess this means I'll need to make a new matrix channel :)

hxr404 commented 2 years ago

Can reproduce, having this issue quite often. Could you perhaps add a !discord unbridge --force switch (which overrides all checks and simply "forgets" the bridge) as a temporary workaround? Thanks

turt2live commented 2 years ago

Over the years this has also become an accidental trust&safety feature, ftr.