mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
Added getLogs
This commit is contained in:
parent
212c672c2f
commit
10442e5634
4 changed files with 16 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue