Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a message will sometimes not properly delete it on linked servers #16

Open
Cubox opened this issue Oct 27, 2020 · 2 comments
Open
Labels
enhancement New feature or request not a bug

Comments

@Cubox
Copy link

Cubox commented Oct 27, 2020

Hi,

I found that the bot has an issue with deleting messages. When a "duplicated" message is deleted, from someone with roles (moderation), this message won't get deleted on linked servers.
It does work when the original message is deleted (by the sender or a moderator), but not when a linked message is.

@Khaaz
Copy link
Owner

Khaaz commented Oct 31, 2020

Hello, as far as I remember my own code, this is actually on purpose (I'll double check though).
I can understand it can be confusing at first but I wanted to keep the "power" to the server that owns the message in the first place (aka: each server handles its own moderation).

@Cubox
Copy link
Author

Cubox commented Nov 2, 2020

Following our conversation on discord, once the "true" edits with PATCH are implemented, I'll work on making this work.
I'll have to follow the array, see for each message their "duplicates" and if I find it, delete the "parent" and all the other duplicated messages.
I'll integrate it with an option, so you can keep the current behaviour.
The reason I want it this way is for consistency across all channels. They must have the same content. If someone delete a message, it can't remain on the other sides. Moderation is cooperative between servers, so if someone decides a message is not OK, it's not OK for all the servers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request not a bug
Projects
None yet
Development

No branches or pull requests

2 participants