mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Added getLogs
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user