mirror of
https://github.com/danbulant/discord.js
synced 2026-06-14 12:11:25 +00:00
work on guild docs
This commit is contained in:
parent
e7e6355cfe
commit
e7ef73ffdc
2 changed files with 8 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -21,7 +21,6 @@ function arraysEqual(a, b) {
|
|||
|
||||
/**
|
||||
* Represents a Guild (or a Server) on Discord.
|
||||
* @class Guild
|
||||
*/
|
||||
class Guild {
|
||||
constructor(client, data) {
|
||||
|
|
@ -125,6 +124,13 @@ class Guild {
|
|||
return this.client.resolver.resolveGuildMember(this, user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether this Guild equals another Guild. It compares all properties, so for most operations
|
||||
* it is advisable to just compare `guild.id === guild2.id` as it is much faster and is often
|
||||
* what most users need.
|
||||
* @param {Guild} guild the guild to compare
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
equals(data) {
|
||||
let base =
|
||||
this.id === data.id &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue