FIX: removed incorrect documentation

This commit is contained in:
kharhamel 2021-07-15 18:23:40 +02:00
parent f2ca7b2b16
commit c5587600ba
2 changed files with 0 additions and 37 deletions

View file

@ -1,23 +1,6 @@
{.section-title.accent.text-primary}
# API Player functions Reference
### Getting information on the current user
```
WA.player.getCurrentUser(): Promise<User>
```
Return a promise that resolves to a `User` object with the following attributes :
* **id (string) :** ID of the current user
* **nickName (string) :** name displayed above the current user
* **tags (string[]) :** list of all the tags of the current user
Example :
```javascript
WA.player.getCurrentUser().then((user) => {
if (user.nickName === 'ABC') {
console.log(user.tags);
}
})
```
### Listen to player movement
```