Class BotPersistentData
- Namespace
- FishMMO.DiscordBot.Data
- Assembly
- FishMMO-DiscordBot.dll
Container for persistent bot data that is saved alongside the dynamic channel states. Serialized to/from botdata.json.
public class BotPersistentData
- Inheritance
-
BotPersistentData
- Inherited Members
Properties
BridgeBans
Lowercased name -> bridge ban entry.
public Dictionary<string, BridgeBanEntry> BridgeBans { get; set; }
Property Value
CommandPermissions
Guild ID -> command permission configuration.
public Dictionary<ulong, CommandPermissionConfig> CommandPermissions { get; set; }
Property Value
LinkedAccounts
Discord user ID -> linked game account, from before links moved into the database.
public Dictionary<ulong, LinkedAccount> LinkedAccounts { get; set; }
Property Value
Remarks
An import source only: nothing reads it for a link any more. On startup ImportLegacyLinksAsync() writes each entry to the database and removes the ones that are done, keeping only entries that failed transiently so the next start retries them. Kept so existing botdata.json files still load.
MutedZones
Discord user ID -> set of muted Discord channel IDs.
public Dictionary<ulong, HashSet<ulong>> MutedZones { get; set; }