account.reorderUsernames
Reorder usernames associated with the currently logged-in user.
func (c *Client) AccountReorderUsernames(ctx context.Context, order []string) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountReorderUsernames(ctx, order)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Order | []string | yes | The new order for active usernames. All active usernames must be specified. |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | ORDER_INVALID | The specified username order is invalid. |
| 400 | USERNAME_NOT_MODIFIED | The username was not modified. |
References
- Official documentation
- Generated Go reference
- TL definition:
account.reorderUsernames#ef500eab