account.setMainProfileTab
Changes the main profile tab of the current user, see here » for more info.
func (c *Client) AccountSetMainProfileTab(ctx context.Context, tab ProfileTabClass) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.AccountSetMainProfileTab(ctx, tab)
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Tab | ProfileTabClass | yes | The tab to set as main tab. |
Returns
bool
References
- Official documentation
- Generated Go reference
- TL definition:
account.setMainProfileTab#5dee78b0