mirror of
https://github.com/danbulant/discord.js
synced 2026-06-19 14:41:36 +00:00
Fix other .equals(null) (#541)
This commit is contained in:
parent
8038903c3e
commit
0a005cbd16
4 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ class GroupDMChannel extends Channel {
|
|||
|
||||
equals(other) {
|
||||
const base = (
|
||||
other &&
|
||||
this.id === other.id &&
|
||||
this.name === other.name &&
|
||||
this.icon === other.icon &&
|
||||
|
|
|
|||
|
|
@ -166,6 +166,7 @@ class Guild {
|
|||
*/
|
||||
equals(data) {
|
||||
let base =
|
||||
data &&
|
||||
this.id === data.id &&
|
||||
this.available === !data.unavailable &&
|
||||
this.splash === data.splash &&
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ class GuildChannel extends Channel {
|
|||
*/
|
||||
equals(other) {
|
||||
let base = (
|
||||
other &&
|
||||
this.type === other.type &&
|
||||
this.topic === other.topic &&
|
||||
this.position === other.position &&
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ class Role {
|
|||
|
||||
equals(role) {
|
||||
return (
|
||||
role &&
|
||||
this.id === role.id &&
|
||||
this.name === role.name &&
|
||||
this.color === role.color &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue