Class DiscordVerification
The Discord verification DM, and the constants its sender and its issuers share.
public static class DiscordVerification
- Inheritance
-
DiscordVerification
- Inherited Members
Remarks
One DM per account, ever. The code is issued once and never replaced, the bot claims the delivery before it sends, and a claim is never taken back automatically: a bot that crashed between the claim and the confirmation leaves the delivery claimed and unsent for staff to see, rather than risk a second DM.
No polling. Issuing a code raises a PostgreSQL notification on NotifyChannel, which the bot listens for. A player who is not in the Discord server yet is sent the DM when they join, from the bot's member-join event.
Fields
MaxErrorLength
Longest reason recorded for a delivery that has not gone out.
public const int MaxErrorLength = 256
Field Value
MaxSendAttempts
Sends Discord refused (DMs closed, the user blocked the bot, the account is linked elsewhere) after which the bot stops trying. Waiting for a player to join the server is not an attempt.
public const int MaxSendAttempts = 5
Field Value
NotifyChannel
The PostgreSQL notification channel raised when a Discord code is issued. No payload.
public const string NotifyChannel = "fishmmo_discord_verification"