Table of Contents

Class LinkedAccount

Namespace
FishMMO.DiscordBot.Data
Assembly
FishMMO-DiscordBot.dll

A Discord link as the bot used to store it in botdata.json.

public class LinkedAccount
Inheritance
LinkedAccount
Inherited Members

Remarks

Links now live in the database (the account's Discord user column), where a verified Discord code and a /link are the same link. This type survives only so old botdata.json files still deserialize: ImportLegacyLinksAsync() moves each entry into the database on startup and removes it from the file.

Properties

CharacterName

Primary character name used during the link.

public string CharacterName { get; set; }

Property Value

string

DiscordUserId

Discord user snowflake ID.

public ulong DiscordUserId { get; set; }

Property Value

ulong

GameAccountName

Game account name linked to this Discord user.

public string GameAccountName { get; set; }

Property Value

string

LinkedAtUtc

When the link was confirmed.

public DateTime LinkedAtUtc { get; set; }

Property Value

DateTime