mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
Added sendFile and server.generalChannel
This commit is contained in:
@@ -39,4 +39,8 @@ export default class PMChannel extends Channel {
|
|||||||
sendTTS() {
|
sendTTS() {
|
||||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendFile() {
|
||||||
|
return this.client.sendFile.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,6 +113,10 @@ export default class Server extends Equality {
|
|||||||
return this.channels.get("id", this.id);
|
return this.channels.get("id", this.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get generalChannel() {
|
||||||
|
return this.defaultChannel;
|
||||||
|
}
|
||||||
|
|
||||||
get owner() {
|
get owner() {
|
||||||
return this.members.get("id", this.ownerID);
|
return this.members.get("id", this.ownerID);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,4 +45,8 @@ export default class TextChannel extends ServerChannel{
|
|||||||
sendTTS() {
|
sendTTS() {
|
||||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
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));
|
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sendFile() {
|
||||||
|
return this.client.sendFile.apply(this.client, reg(this, arguments));
|
||||||
|
}
|
||||||
|
|
||||||
addTo(role, callback) {
|
addTo(role, callback) {
|
||||||
return this.client.addMemberToRole.apply(this.client, [this, role, callback]);
|
return this.client.addMemberToRole.apply(this.client, [this, role, callback]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user