mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 21:12:06 +00:00
Added sendFile and server.generalChannel
This commit is contained in:
parent
05409ccc21
commit
212c672c2f
4 changed files with 16 additions and 0 deletions
|
|
@ -39,4 +39,8 @@ export default class PMChannel extends Channel {
|
|||
sendTTS() {
|
||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
sendFile() {
|
||||
return this.client.sendFile.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,6 +112,10 @@ export default class Server extends Equality {
|
|||
get defaultChannel() {
|
||||
return this.channels.get("id", this.id);
|
||||
}
|
||||
|
||||
get generalChannel() {
|
||||
return this.defaultChannel;
|
||||
}
|
||||
|
||||
get owner() {
|
||||
return this.members.get("id", this.ownerID);
|
||||
|
|
|
|||
|
|
@ -45,4 +45,8 @@ export default class TextChannel extends ServerChannel{
|
|||
sendTTS() {
|
||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
sendFile() {
|
||||
return this.client.sendFile.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,6 +78,10 @@ export default class User extends Equality{
|
|||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
sendFile() {
|
||||
return this.client.sendFile.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
addTo(role, callback) {
|
||||
return this.client.addMemberToRole.apply(this.client, [this, role, callback]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue