Added getLogs

This commit is contained in:
Amish Shah
2015-12-05 17:12:15 +00:00
parent 212c672c2f
commit 10442e5634
4 changed files with 16 additions and 0 deletions

View File

@@ -43,4 +43,8 @@ export default class PMChannel extends Channel {
sendFile() {
return this.client.sendFile.apply(this.client, reg(this, arguments));
}
getLogs() {
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
}
}

View File

@@ -116,6 +116,10 @@ export default class Server extends Equality {
get generalChannel() {
return this.defaultChannel;
}
get general() {
return this.defaultChannel;
}
get owner() {
return this.members.get("id", this.ownerID);

View File

@@ -49,4 +49,8 @@ export default class TextChannel extends ServerChannel{
sendFile() {
return this.client.sendFile.apply(this.client, reg(this, arguments));
}
getLogs() {
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
}
}

View File

@@ -89,4 +89,8 @@ export default class User extends Equality{
removeFrom(role, callback) {
return this.client.removeMemberFromRole.apply(this.client, [this, role, callback]);
}
getLogs() {
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
}
}