mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Finalised server documentation
I think
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user