mirror of
https://github.com/danbulant/discord.js
synced 2026-06-21 15:51:48 +00:00
Finalised server documentation
I think
This commit is contained in:
parent
d7d170cab7
commit
1d8905d25a
2 changed files with 21 additions and 2 deletions
|
|
@ -89,6 +89,25 @@ rolesOfUser(user)
|
|||
|
||||
Returns an array of the roles affecting a user server-wide.
|
||||
|
||||
------
|
||||
|
||||
detailsOfUser(user)
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
**Aliases** `detailsOf`
|
||||
|
||||
Returns an object containing metadata of a user within the server, containing a structure similar to the following:
|
||||
|
||||
.. code-block:: js
|
||||
|
||||
{
|
||||
joinedAt : 1449339323747,
|
||||
mute : false,
|
||||
deaf : false
|
||||
}
|
||||
|
||||
----------
|
||||
|
||||
leave()
|
||||
~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ export default class Server extends Equality {
|
|||
}
|
||||
}
|
||||
|
||||
details(user) {
|
||||
detailsOf(user) {
|
||||
user = this.client.internal.resolver.resolveUser(user);
|
||||
if (user) {
|
||||
return this.memberMap[user.id];
|
||||
|
|
@ -80,7 +80,7 @@ export default class Server extends Equality {
|
|||
}
|
||||
}
|
||||
|
||||
detailsOf(user) {
|
||||
detailsOfUser(user) {
|
||||
return this.details(user);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue