Handle 409/410 when confirming username
This commit is contained in:
parent
10885e5d3f
commit
486ada8b6c
8 changed files with 106 additions and 15 deletions
|
@ -12,6 +12,11 @@ export enum ReserveUsernameError {
|
|||
Conflict = 'Conflict',
|
||||
}
|
||||
|
||||
export enum ConfirmUsernameResult {
|
||||
Ok = 'Ok',
|
||||
ConflictOrGone = 'ConflictOrGone',
|
||||
}
|
||||
|
||||
export function getUsernameFromSearch(searchTerm: string): string | undefined {
|
||||
// Search term contains username if it:
|
||||
// - Is a valid username with or without a discriminator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue