mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
work on guild docs
This commit is contained in:
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 &&
|
||||
|
||||
Reference in New Issue
Block a user