docs/EXPORT.md
Server export format
This guide is for server owners who move a server's NeonFlux data to another bot and for developers who write an importer. The server export is a readable JSON copy of a server's NeonFlux settings, leveling profiles, member showcases and profiles, moderation cases with their corrections and appeals. It is separate from the encrypted backup, which only restores into NeonFlux. NeonFlux does not import data from other bots
Get an export
Only the current server owner can export, because the file holds private moderation data
- On the dashboard, open Server export under Insights and choose Export server data. NeonFlux checks with Fluxer that the signed-in member owns the server, the same live check private cases use, then reads the export and offers the file to save
- In chat, send
!exportto NeonFlux in a one-to-one DM, with--server <serverId>in multi-server mode. NeonFlux checks that the member owns the server and sends the file in the DM, as the bot guide describes
The server's audit log records each export with who started it and from where, never its content
File
The file is UTF-8 JSON printed with two spaces of indentation. Its name is neonflux-server-export-<serverId>.json. Times are Unix milliseconds in UTC, and user, role and channel IDs are decimal strings
| Field | Value |
|---|---|
format | Always neonflux-server-export |
version | The format version, 2 for this format. A new version changes this guide first. Version 1 kept a case's corrections inside the case as cases[].corrections, where version 2 lists them in corrections |
serverId | The server the data belongs to |
exportedAt | When the export started |
part | The part number, starting at 1 |
lastPart | true on the last part |
settings | Each feature's settings by family name, see settings |
levels | Leveling profiles, see levels |
showcases | Member showcases, oldest first, see showcases |
profiles | Member profiles, see profiles |
cases | Moderation cases, oldest first, see cases |
corrections | Reason corrections and voids of cases, oldest first, see corrections |
appeals | Appeals, oldest first, see appeals |
An export from the dashboard is always one file. A chat export larger than about 4 MiB arrives as several files named neonflux-server-export-<serverId>-part-<n>.json, each sent as its own DM message. Every part is a complete file of the same shape with its own share of the data. To load a split export, read every part from 1 to the one with lastPart: true, concatenate the levels, showcases, profiles, cases, corrections and appeals arrays and merge settings, where a family that appears in more than one part continues its lists
Settings
settings holds one object per family, with the settings as the dashboard shows them. Field names and values follow the shared contracts, and each family's section in the bot guide explains what a setting does
| Family | Contents |
|---|---|
general | prefix, replyStyle (embed or text) and the bot's nickname, or null when it has none |
analytics | enabled, whether NeonFlux counts server activity |
roles | settings for reaction roles, rules verification and autorole, and panels with their role mappings |
logs | Channel log enabled, category routes, per-event eventRoutes, allChannels, webhookPosts, messageChannelIds and excludedChannelIds |
responses | settings and the custom command and autoresponder definitions |
moderation | settings, the privateDataRoleId, automod rules and the security watchlist with its reasons |
publishing | settings and saved drafts and templates with their message content |
greetings, suggestions | settings |
leveling | settings, which hold onlyChannelIds when only those channels earn XP |
tickets | settings and categories with their questions and canned replies |
milestones | settings and the birthday and anniversary routes |
cleanup | settings and the per-channel policies |
events, schedules | settings and the events or schedules with their dates |
voice | Temporary voice generators |
commandrules | rules, each with its command, channels and roles |
rolepicker | settings with its menus and the access lists |
temproles | settings with each role's default and longest duration |
sticky | stickies with their channel, text and interval |
sidebar | The dashboard link channel, or null |
alerts | Security alert settings |
helpdesk | settings and saved answers |
onboarding | Newcomer checklist settings |
lfg | Looking for group settings |
showcase, profile | settings and the access lists |
youtube | Followed YouTube channel subscriptions, each with its YouTube channel ID, alert channel, whether alerts are on, the problem that turned them off and when it was added |
lockdown | The lockdown settings, with the exempt channels |
antinuke | Anti-nuke settings, with the mode, limits, response and trusted accounts |
jail | Jail settings, with whether it is on, the role and the channel. Jailed members are moderation records, not settings |
rights | Bot-only staff rights settings, with whether they are on, which roles hold which rights and each right's limit. Backups leave these out |
twitch | Followed Twitch broadcaster subscriptions, each with its Twitch broadcaster ID, alert channel, whether alerts are on, the problem that turned them off and when it was added |
feeds | Followed Bluesky and X account subscriptions, each with its service, account ID, post channel, whether posts are on, the problem that turned them off and when it was added |
counters | Counter channels enabled and counters, each with its channel, kind, counted role, name template, whether it is on, the problem that turned it off and when it was added |
boards | Boards enabled and boards, each with its name, emoji, channel, threshold, whether an author's reaction and messages of bots count, ignored channels, the problem that stopped it and when it was created |
reminders | Personal reminders settings: Whether they are on and the limit per member. A member's reminders are never exported here |
giveaways | Giveaway settings: Whether they are on and the required role. Giveaways themselves are live state |
Live state, such as active temporary role grants, open voice rooms and groups, the invite list, a running lockdown, anti-nuke incidents, checklist completion counts and each YouTube or Twitch channel's subscription status and latest activity, is not part of the settings
Levels
Each entry is a member with current-season XP. Members without XP, including those whose XP belongs to an earlier season, are left out
| Field | Value |
|---|---|
userId | The member |
xp | Current-season XP |
level | The level that XP reaches. Level N needs 100 * N² XP, up to level 1000 |
Showcases
Each entry is a showcase that still exists, with the text as the member wrote it, including any mention syntax. The posted message neutralizes mentions, the export does not
| Field | Value |
|---|---|
showcaseNo | The showcase number in this server |
authorId | The member who posted it |
title | The title, up to 100 characters |
text | The text, up to 1,000 characters |
links | Up to 3 web addresses in their normalized form |
channelId | The channel NeonFlux posted it in |
messageId | NeonFlux's message, present once Fluxer confirmed it |
createdAt | When the member posted it |
updatedAt | When the member last changed it |
Profiles
| Field | Value |
|---|---|
userId | The member |
bio | The bio as the member wrote it, up to 300 characters, possibly empty |
links | Up to 3 web addresses in their normalized form |
color | The accent color as an RGB number, or null for the default |
updatedAt | When the member last saved it |
Cases
| Field | Value |
|---|---|
caseNo | The case number in this server |
action | The action, such as warn, timeout, kick, ban or log |
origin | What created the case: manual, automod, security, or penalty for the warning limit |
incident | Present for security cases: join-burst, honeypot or watchlist |
actorId | The staff member who acted, when one did |
targetId | The member the case concerns, when there is one |
channelId | The channel involved, when there is one |
ruleName | The automod rule that matched, for automod cases |
linkedCaseNo | The earlier case this one reverses or follows |
reason | The reason, an empty string when staff gave none, or null when the owner erased the case |
outcome | pending, succeeded, failed or uncertain when NeonFlux could not confirm the action |
voided | Whether staff voided the warning |
erased | Whether the owner erased the case's text |
createdAt | When the case was created |
Corrections
Each time staff change a case's reason or void a warning, the case keeps a correction. A case may have any number. Erasing a case deletes its corrections
| Field | Value |
|---|---|
caseNo | The corrected case |
type | reason for a changed reason or void for a voided warning |
actorId | The staff member who made the correction |
previousReason | The reason before the correction |
reason | The reason after it, the same as before for a void |
createdAt | When staff made the correction |
Appeals
| Field | Value |
|---|---|
appealNo | The appeal number in this server |
caseNo | The appealed case |
userId | The member who appealed |
status | open, accepted, rejected or withdrawn |
text | The appeal, or null when the owner erased its case |
decisionReason | Present once staff decided, or null when erased |
decidedBy | The staff member who decided |
decidedAt | When staff decided |
erased | Whether the owner erased the appeal's case |
createdAt | When the member appealed |
What the export leaves out
The export holds no credentials, sessions, receipts, leases, delivery attempts or other bookkeeping. It also leaves out other data the server owner does not author or that belongs to members, such as AFK statuses, birthdays, RSVPs, votes, suggestions, tickets, analytics counts, metadata log records and the audit log itself. Showcases and profiles are included because members publish them in the server. Members export their own data with !mydata
Fluxer's own channels are not NeonFlux data, so the export lists none of them, including forum and media channels with
their tags and post settings. The encrypted backup's structure category keeps those for a restore into NeonFlux, as
the bot guide describes