mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 09:13:22 +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() {
|
sendFile() {
|
||||||
return this.client.sendFile.apply(this.client, reg(this, arguments));
|
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() {
|
get generalChannel() {
|
||||||
return this.defaultChannel;
|
return this.defaultChannel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get general() {
|
||||||
|
return this.defaultChannel;
|
||||||
|
}
|
||||||
|
|
||||||
get owner() {
|
get owner() {
|
||||||
return this.members.get("id", this.ownerID);
|
return this.members.get("id", this.ownerID);
|
||||||
|
|
|
||||||
|
|
@ -49,4 +49,8 @@ export default class TextChannel extends ServerChannel{
|
||||||
sendFile() {
|
sendFile() {
|
||||||
return this.client.sendFile.apply(this.client, reg(this, arguments));
|
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) {
|
removeFrom(role, callback) {
|
||||||
return this.client.removeMemberFromRole.apply(this.client, [this, 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