mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 18:43:31 +01:00
added private messages, better cache tracking and channel/server creation/deletion and signals
This commit is contained in:
6
lib/PMChannel.js
Normal file
6
lib/PMChannel.js
Normal file
@@ -0,0 +1,6 @@
|
||||
var User = require("./user.js").User;
|
||||
|
||||
exports.PMChannel = function(user, id){
|
||||
this.user = new User(user);
|
||||
this.id = id;
|
||||
}
|
||||
@@ -3,6 +3,8 @@ var apibase = base + "api";
|
||||
|
||||
exports.WEBSOCKET_HUB = "wss://discordapp.com/hub"
|
||||
|
||||
exports.USERS = apibase + "/users";
|
||||
|
||||
exports.LOGIN = apibase + "/auth/login";
|
||||
exports.LOGOUT = apibase + "/auth/logout";
|
||||
|
||||
|
||||
@@ -20,10 +20,6 @@ exports.User.prototype.mention = function(){
|
||||
|
||||
exports.User.prototype.equals = function(otherUser){
|
||||
|
||||
if(otherUser.id === this.id){
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return otherUser.id === this.id;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user