mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Removed trailing spaces, added unbanMember and kickMember
This commit is contained in:
@@ -9,19 +9,19 @@ class PMChannel extends Equality{
|
||||
constructor(data, client){
|
||||
super();
|
||||
this.client = client;
|
||||
|
||||
|
||||
this.type = data.type || "text";
|
||||
this.id = data.id;
|
||||
this.lastMessageId = data.last_message_id;
|
||||
this.messages = new Cache("id", 1000);
|
||||
this.recipient = this.client.internal.users.add(new User(data.recipient, this.client));
|
||||
}
|
||||
|
||||
|
||||
/* warning! may return null */
|
||||
get lastMessage(){
|
||||
return this.messages.get("id", this.lastMessageID);
|
||||
}
|
||||
|
||||
|
||||
toString(){
|
||||
return this.recipient.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user