mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
Join Server returns server properly
Previously if the client was already part of a server and attempted to accept an invite to it again, it would stall and not work correctly.
This commit is contained in:
@@ -14,7 +14,7 @@ class Channel {
|
||||
}
|
||||
|
||||
equals(object) {
|
||||
return object.id === this.id;
|
||||
return (object && object.id === this.id);
|
||||
}
|
||||
|
||||
addMessage(data){
|
||||
|
||||
Reference in New Issue
Block a user