Docs

Privacy and data

Privacy and data

What the bot keeps about people in your servers, for how long, and who can see it. Everything is stored in the install's MongoDB database (pictures and videos possibly in a folder on the same server, or in the install's object storage). Each network's records are kept apart: nobody in one network can see another network's records, settings or servers. Nothing is sent anywhere else unless a network's admins set up webhooks or give a program an API key. Where pictures and videos end up is described in The message log.

The formal versions, for members and server operators, are the Privacy Policy, the Terms of Use and the Data Processing Agreement. They're public at /legal/privacy-policy, /legal/terms and /legal/dpa, and linked from the footer of every page.

What is kept

What Kept Comes from Who can see it
Cases: every ban, mute, timeout, kick, softban, warning and note, with the reason, who did it, when, and how long it lasts For good. Removing a note from Staff notes doesn't delete it. Staff actions, auto-mod, bans and timeouts made with Discord's menus, Discord's AutoMod timeouts Staff with View records; /history
Memberships: which servers someone has been in, when they first appeared, and every join and leave For good The members module Staff with View records; the full list of a server's members needs Member lists
Roles taken by a mute: which roles were taken from a muted member in each server Until they're given back, when the mute ends The moderation module Nobody directly (kept in muted_roles)
History restrictions: who can't read a channel's history, who restricted them and why Until it's lifted with /unrestrict history The moderation module Staff with access to the audit log (and the mod-log post)
Names (aliases): every username, display name and nickname someone has used For good The members module (the aliases feature) Staff with View records
Profile pictures: a copy of the picture of everyone with a case For good, so the picture survives a change or a deleted account The members module (the avatars feature) Staff with View records
Messages: what people write 7 days by default (messagelog.cache_days). The text of an edited or deleted message is kept for good, with who deleted it (the author, a moderator, or the bot) when Discord's audit log says. Servers with a message-log channel (the messagelog module) Staff with Message logs; the message-log channel
Pictures, videos and files on those messages (up to 25 MB, kept in MongoDB, in a folder on the server, or in the install's object storage) 48 hours by default (messagelog.media_hours). A deleted message's files are then kept only in the message-log channel in Discord, and the bot's copy is removed. Servers can have those posts deleted after 1–365 days (Delete posts after), except posts staff keep or whose message is on a timeline. The messagelog module Staff with Message logs; the message-log channel
Auto-mod hits: the start of a caught message (up to 500 characters), which rule matched, and what was done 180 days, except hits that led to a sanction: those are kept for good with the case, as the record of why it was given. The automod module Staff with View records
Messages on a timeline: which edited or deleted messages staff added to someone's timeline as evidence, by whom and when Until removed from the timeline Staff with Message logs Staff with View records in that server
Message-log post records: which post in your message-log channel holds which message, and whether it's kept or was deleted For good (the post itself is deleted after the server's Delete posts after setting, if any) The messagelog module Used by the bot; shown as each message's status
The events feed: a copy of every event sent to other systems (cases, joins and leaves with names, edited and deleted messages' text, auto-mod hits) 30 days The api module Programs with an events:read key
Webhook deliveries: each event waiting to be sent to a webhook Until delivered or given up on, then 7 days The api module, when webhooks are set up Programs with a webhooks key
Linked accounts: which accounts staff have linked to one person Until unlinked Staff with Link accounts Staff with View records
Staff sign-ins: name, account, permissions, the Discord servers they manage (for Your servers), the browser's user agent, when it was last used, whether the Discord account has two-factor on, and personal settings (display name, time zone, clock, their own dashboard charts) A sign-in lasts 12 hours (1 hour through Authentik) and is deleted when it ends; personal settings stay The panel That staff member
Networks: each network's name, its owner's Discord ID, its servers, and who asked for a server to join or move Until the network is deleted (below) Network admins Its admins; operators see the name, owner and counts
Abuse reports: the network or server reported, what the reporter wrote, and the reporter's Discord account For good, as the record of what operators acted on Anyone signed in with Discord, from the sign-in page The install's operators
The operator log: each suspension, lift, plan change and resolved report, with the operator and the reason For good, even after the network is deleted Operators The install's operators

The bot doesn't read direct messages sent to it, and doesn't keep messages in servers without a message-log channel. Auto-mod checks every message, but keeps only those that match a rule. To limit sign-ins and abuse, the panel counts requests per address and per person, in memory only: addresses aren't saved, and the counts go when the bot restarts.

What leaves the database

  • Direct messages to the person sanctioned, from the server it happened in: the reason, how long it lasts, and the case number.
  • Mod-log and message-log posts in your Discord channels.
  • Webhooks, if an admin sets them up: each sends the events it was set up for to the address given. Message events include the message's text but not its files; auto-mod hits include the start of the message.
  • The REST API, to programs with a key, limited to the key's scopes. Answers to POST /api/v1/cases with an Idempotency-Key are kept for 24 hours, so a retry gets the same answer.
  • Exports: a network's owner can download the network's records as a .zip (Settings → Network), to keep or to move elsewhere. It holds everything above for that network's servers except pictures and videos, and is recorded in the audit log.
  • Counts, if you switch them on: /metrics (for Grafana) and the stats API give numbers only, such as cases per day or hits per rule, never who or what was said.
  • REMP, the enforcement platform, once connected mode arrives: records and message-log files will be kept there. Today the bot runs standalone, and nothing is sent to REMP unless you set up webhooks for it. See the REMP integration spec.

Removing someone's data

A whole network: its owner deletes it in Settings → Network. Its servers leave at once, and its records (cases, people, settings, logs and saved messages) are deleted for good 30 days later. A network the bot has been removed from everywhere is deleted after 90 days, except the install's own network. Abuse reports about it and the operator log stay. Download an export first to keep a copy.

One person: there's no button for this yet. A case can't be deleted from Discord or the panel, by design, so the record can be trusted. If someone asks for their data to be removed (for example under the GDPR), the person hosting the bot can delete their documents from the MongoDB database directly: search each collection for their Discord ID or discord:<id>, with network_id set to the network that was asked, since each network keeps its own record of a person. Saved pictures and videos are listed in media_files (or GridFS message_media) by message; if they're kept in a folder, delete the file named after the record's ID too (in object storage, the object media/<last two characters of the ID>/<ID>). Their timeline entries are in timeline_entries, by identity. Files of deleted messages are in the message-log channel's posts: delete those posts in Discord.

Telling your community

If you use the message log or auto-mod, say so, for example in your rules channel:

To keep this server safe, a moderation bot records moderation actions, and keeps copies of messages for up to 7 days (pictures and files for 2 days), or longer if a message is edited or deleted. Moderation records, including bans, their reasons and evidence, are kept for good. Only staff can see them. Privacy Policy: https://revenge.bot/legal/privacy-policy

Keep the mod-log and message-log channels, and the panel's Message log, to staff who need them.

Are you sure?