User

Set nickname

func (cli *Client) SetDisplayName(displayName string) (err error)

Parameters:

Name
Type
Description
Required

displayName

string

client display name

true

Returns:

Name
Type
Description
Required

err

error

error message

true

Get nickname

func (cli *Client) GetDisplayName() (resp *RespUserDisplayName, err error)

Parameters: empty

Returns:

Name
Type
Description
Required

resp.DisplayName

string

client display name

true

err

error

error message

true

Set avatar url

func (cli *Client) SetAvatarURL(url string) (err error)

Parameters:

Name
Type
Description
Required

url

string

client avatar url

true

Returns:

Name
Type
Description
Required

err

error

error message

true

Get avatar url

func (cli *Client) GetAvatarURL() (avatarUrl string, err error)

Parameters: empty

Returns:

Name
Type
Description
Required

avatarUrl

string

client avatar url

true

err

error

error message

true

Last updated