Show attachments in staff log#303
Conversation
|
Did you test what happens to these attachment links when a message has been deleted (for a while)? I can imagine Discord not keeping attachments around if they're attached to a message anymore. |
|
No discord does not keep them for very long, but I don't think we can do
something against it, because of privacy.
|
|
I've just tested it and the attachments are basically inaccessible as soon as the message gets deleted. That means I don't really see the point in adding the URLs to the database. I did not consider that the other day when I commented on the issue, but I don't think this is a suitable solution. |
|
Actually that depend on discord decide to react, the proxy_url isn't
disabled immediately in most of the cases
|
|
I did more research and here is what I found (again, I’m not a lawyer). Discord developer ToS2.1 API or SDK licence
2.4 End User data
My point of viewFrom what I understand, we can’t use the end user data, including attachments, except for exercising our rights (2.4a). Using the API functionalities to produce our services are part of our rights (2.1), so we should be able to store attachments. SolutionsWe can either
|
|
Hmm, how about reuploading the attachments to the mod log, then use that link instead? That way we can access it much later as well, and discord will maintain it. |
|
@SebastiaanZ said some mods wouldn’t want all the attachments to appear in mod-log or mod-alert, because that take too much place (tbh I kind of agree with them), this is why I suggested to create a special bot-only channel. |
MarkKoz
left a comment
There was a problem hiding this comment.
There should be a test for the attachment images being in the HTML, similar to the embed tests.
…ython-discord/site into bot#549-show-attachments-staff
|
@Akarys42 Another channel just for the occasional image attachment relay seems a bit like overkill to me. That means we'd have a mostly empty channel and there are already a lot of channels in that log category for moderators. Since we're deleting messages, maybe we should make an exception and have the attachments relayed to |
|
Okay, maybe we should just open another channel. I'm going to discuss this with the admins/mods to gauge everyone's preferences. |
jchristgit
left a comment
There was a problem hiding this comment.
Your migration conflicts with 0049_offensivemessage.py. Can you update to the latest master?
|
Done! @jchristgit |
Hi, this PR show the attachments along with the original message in staff logs (https://staff.pythondiscord.com/bot/logs/...). python-discord/bot#630 need to be merged after this one for the feature to work.
This PR closes python-discord/bot#549
Before
After