Function __global->process_username_discriminator
Definitions
sources/cns_members_action2.php
- Given a username, append (or change) a discriminator if the username already exists.A discriminator is a # followed by 4 random letters or numbers suffixed at the end of a username (in rare cases, it might also contain a - or _).
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$username | SHORT_TEXT | required parameter | N/A | N/A | The desired name for the member profile |
$username_only | boolean | False | N/A | N/A | Whether we just want the username without a discriminator, and $username might contain a discriminator |
Return
- A username with a discriminator if necessary
- Type: SHORT_TEXT
- Set: N/A
- Range: N/A