Resources
Data and privacy
Exactly what is stored and for how long.
Severed operates in Discord servers where it is installed. It does not process direct messages or track members across servers for analytics.
Stored on disk
The local SQLite database contains server IDs, custom prefixes, classic embed colors, and configured log channel IDs. Main-owner-managed bot staff records contain user IDs, the adding owner's ID, and the addition timestamp. Staff membership is intentionally bot-wide; server settings are keyed by guild ID.
Moderation cases store the server ID, server-local case ID, action name, target user, role, or channel ID, moderator ID, reason (up to 400 characters), and timestamp. Warning cases also have an active flag. Clearing warnings changes that flag and preserves their case history. Each server has its own case-number sequence. No deleted-message bodies or purge contents are stored in moderation cases. Records remain until the operator removes them; case queries are restricted to that server's moderators.
Cases also distinguish member, role, and channel subjects. Moderator notes store the guild ID, case-based note ID, target ID, moderator ID, up to 400 characters of note text, and timestamp. Notes remain until a moderator removes or clears them. Their addition/removal produces a case without copying deleted note text into that case. Reason edits replace the case's reason and create a separate audit case. Neither notes nor reason edits are shared across servers.
Channel restrictions store the guild, channel, subject role/member, restriction kind, original permission bitfields, controlled permission mask, whether an overwrite existed, and the time saved. This data allows unlock/unhide to restore the prior state after a restart. The saved state is removed after restoration. Failed or uncertain requests retain it for review; the operator can remove obsolete entries after verifying the channel's permissions.
Server feature configuration is stored in server_records, keyed by guild, feature kind, and record key. Values contain announcement channel/template subscriptions; autoresponder match modes, triggers, and response templates; command alias targets/fixed arguments; or scoped command/category/ignore rules. Each record has an update timestamp and revision. server_revisions stores a per-guild counter so deleting and recreating a setting cannot make an old confirmation valid again. Configuration remains until a manager removes it. Removed configuration values are deleted, while the guild's numeric revision counter remains.
The database persists until its operator removes it. Tokens remain in the operator's environment or .env file and must not be shared. Webhook tokens are kept in process memory and omitted from delivery errors.
Temporary message data
Discord's message cache holds at most 100 messages per channel, with a two-hour age sweeper running each minute. Deleted and previous edited message content used by snipe is stored only in process memory, never in the database, along with author ID, username, avatar URL, image attachment URLs, and the event timestamp. Content is capped at 4,000 characters; image URLs are capped at ten per entry.
Snipe has a two-hour TTL, 30 entries per kind per channel, and a process-wide limit of 1,000 channels. Reads remove expired entries immediately; a minute timer also removes expired entries. No reads extend the TTL. ,cs removes both snipe kinds from the current channel; leaving a server or deleting a channel clears its entries. Restarting the bot clears every snipe entry, because message text is never written to disk. A separate reaction log behind ,reactionsnipe and ,reactionhistory is saved in the database, but it holds no message text: only the user ID, the emoji, a link to the message and the time of recent reaction adds and removals (at most 50 events per message and 1,000 messages). It expires after two hours and is cleared when the bot leaves a server. Bulk-deleted messages are not added to the snipe cache.
Snipe requires Read Message History in the channel. Clearing it requires Manage Messages in that channel. Bot messages, webhook messages, and unavailable partial content are excluded. The bot does not fetch deleted content from Discord or another service.
Announcement delivery queues temporarily hold member ID, username, guild name/count, event time, and the configured subscription revision. Queues are bounded and discarded on shutdown. Autoresponders compare current message text against configured literal triggers without storing that message in their configuration. Their temporary cooldown maps contain guild/channel/user IDs and expiry times. Ordinary message handling still uses Discord's bounded message cache described above.
Uploaded audio
,audio (and /audio) works on a file the member attaches. The bot downloads it from Discord's own file servers only (no other hosts, no redirects, at most 8 MB), writes it to a temporary folder on the bot's machine, runs ffmpeg on it, sends the result back as a Discord attachment, and deletes the folder immediately, including when processing fails or times out. Audio and pictures are never written to the database or kept after the command finishes. At most two jobs run at once, and each member can have one running at a time.
,audio identify is the only part that contacts another service, and only if the bot operator has set AUDD_API_TOKEN: it sends the first 12 seconds of the uploaded clip to AudD (audd.io) to recognise the song, and the reply says so. Without the token nothing is sent.
Configured server logging
Logging is off until a server manager configures a destination. Enabled logs send event subject IDs, timestamps, channel or role references, and relevant event details to that server's configured Discord channel. Message edit/delete logs can include up to 650 escaped characters per before/after excerpt. Bulk-delete logs contain counts, not message bodies. Voice logs include channel changes and mute/deaf/stream state. They do not record audio or video.
Completed moderation commands can send their action, moderator, subject, reason, and case ID through the same configured log queue. Confirmation prompts contain the requested action and reason; they expire after 30 seconds. No punishment DMs are sent by this batch.
Configured member announcements and automatic responses are sent as bot cards to the selected guild channel. They suppress mention pings. These messages remain in Discord until deleted there. Removing a subscription or autoresponder stops future eligible delivery; it does not delete messages already sent. No automatic DMs are sent by Server features.
Delivery queues use memory, hold at most 250 pending events per server and 5,000 pending events in total, and discard overflow with a diagnostic. Sent log cards remain in Discord until someone with permission deletes them. ,logs off stops delivery; it does not delete logs already sent. Server managers control who can view the log channel and should account for excerpts from other channels.
External requests
The bot calls Discord's official API for profiles, member search, server details, and logging. Avatar/banner dimension reads go only to Discord's CDN, use an eight-second timeout, stop after finding dimensions, and read at most 1 MiB. No image files are stored locally. This implementation sends no data to analytics services or third-party AI services. The one optional exception is song identification, described under "Uploaded audio", which needs the operator to opt in.
Removal
Server managers can clear channel snipes with ,cs and disable logs with ,logs off. Moderators can clear active warnings with ,clearwarns, which retains case history, and remove note text with ,notes remove or ,notes clear. Managers can remove announcement subscriptions, autoresponders, aliases, and restriction/ignore rules with their respective commands. To erase persistent guild data, contact the bot operator, who can remove the guild's rows from guild_settings, guild_ui_settings, moderation_cases, guild_case_sequences, moderation_notes, channel_restrictions, server_records, and server_revisions in the local database. Bot staff records are managed separately by the main owner. Deleting the bot's local database removes all locally persisted settings, moderation records, restoration state, and staff records; Discord messages must be deleted in Discord.