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