RegistrationCodeUserData
public struct RegistrationCodeUserData : Content
Returns the registration code associated with a user. Not all users have registration codes; e.g. asking for the reg code for ‘admin’ will return an error.
-
Declaration
Swift
var users: [UserHeader]
-
The registration code associated with this account. If this account doesn’t have an associated regcode, will be the empty string.
Declaration
Swift
var regCode: String
-
TRUE if this reg code was created to get allocated to a user on Discord for the purpose of creating an account on the pre-prod server.
Declaration
Swift
var isForDiscordUser: Bool
-
If this reg code has been allocated to a Discord user, the name of the user. Nil if not a Discord regcode or if not yet allocated.
Declaration
Swift
var discordUsername: String?