mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Removed trailing spaces, added unbanMember and kickMember
This commit is contained in:
@@ -2,29 +2,29 @@
|
||||
The Equality Class is just used to show
|
||||
that a Class has an ID that can be used to
|
||||
check for equality.
|
||||
|
||||
|
||||
Never use == or === when comparing
|
||||
objects in discord.js, they will be different
|
||||
instances sometimes.
|
||||
|
||||
|
||||
Instead, use objectThatExtendsEquality.equals()
|
||||
*/
|
||||
class Equality{
|
||||
constructor(){
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
get eqDiscriminator(){
|
||||
return "id";
|
||||
}
|
||||
|
||||
|
||||
equals(object){
|
||||
if(object && object[this.eqDiscriminator] == this[this.eqDiscriminator]){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
equalsStrict(object){
|
||||
// override per class type
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user