diff --git a/src/Structures/PMChannel.js b/src/Structures/PMChannel.js index 948802739..9f8076bab 100644 --- a/src/Structures/PMChannel.js +++ b/src/Structures/PMChannel.js @@ -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)); + } } diff --git a/src/Structures/Server.js b/src/Structures/Server.js index 667f6006e..d95ed469b 100644 --- a/src/Structures/Server.js +++ b/src/Structures/Server.js @@ -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); diff --git a/src/Structures/TextChannel.js b/src/Structures/TextChannel.js index 3835a8089..c38769204 100644 --- a/src/Structures/TextChannel.js +++ b/src/Structures/TextChannel.js @@ -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)); + } } diff --git a/src/Structures/User.js b/src/Structures/User.js index 715859568..2acd2fa01 100644 --- a/src/Structures/User.js +++ b/src/Structures/User.js @@ -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)); + } }