API Feature Request: User ID with Message Delete event. #3211
Replies: 9 comments
-
Well, that's because Audit Log is for moderation actions and deleting your own message is not a moderation action. What would have improvement potential would be deletions by bots, these should be logged too. |
Beta Was this translation helpful? Give feedback.
-
This would leak the user id of the action performer to everyone, which could result with users being witch hunted for performing a moderation task. The audit log is the correct surface for exposing moderation actions. |
Beta Was this translation helpful? Give feedback.
-
Now, I'd actually say you could put deleting your own message under moderation. Say I had a rule of "no saying the word owo" in my guild, and someone said it, and then deleted there own message, was reported, I could check the audit logs and see "oh, user X deleted there own message around that time". Deletion by bots isn't logged in the audit logs? But this is besides the point. I think that the id should go along with the MESSAGE_DELETE event, it would be very useful for moderation actions; i.e. one of your admin's goes crazy and starts deleting everyones messages, you could tell it were them and take appropriate action. |
Beta Was this translation helpful? Give feedback.
-
While it'd be nice to know who deleted what message, I don't think the ID should be sent to everyone. Maybe if possible, the event should have the deleter's ID, but only within payloads sent to users/bots with VIEW_AUDIT_LOGS permission in that guild? |
Beta Was this translation helpful? Give feedback.
-
I agree with the above. It should be only available to the bot API for moderation bots, and for those with the audit-logs permission. |
Beta Was this translation helpful? Give feedback.
-
Any update on this? Would be nice to have a developer comment. |
Beta Was this translation helpful? Give feedback.
-
this would be great |
Beta Was this translation helpful? Give feedback.
-
Yeah, if bot itself has view audit log perm, the WS can send to bot the payload with the user object that deleted the message. |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this? I'm writing a bot to help with moderation, and it creates temporary channels and logs everything in them, including the eventual deletion of the channel. Everything works great, except obviously logging message deletions. This is intended to be used for discussing breaches of policy with offenders, and so there's some expectation that people will type messages in anger, then delete them. Given this is for dealing with offenders, it feels important that we are able to see if they are self-moderating (yay they're getting the message) or whether they are further breaching policy. I'm using a similar approach to https://stackoverflow.com/questions/61569596/discord-py-log-messages-when-deleted, and checking that the event is from the past 1000ms, but this is obviously still flawed. I can see there are some reasons given for not including the message deleter in the deletion event, but is there any reason why the audit log doesn't show which messages have been deleted on the log entry? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
One of my biggest annoyances currently is that the user that deleted a message does not come with the message delete payload.
Now, I know, there are audit logs, but using them is somewhat annoying, and for some reason, if you delete your own message, it doesn't show up. A simple snowflake with the event of who deleted it would suffice.
Beta Was this translation helpful? Give feedback.
All reactions