Update channel improvements

Also documented two methods for voice connections. (pause and resume)
This commit is contained in:
Programmix
2016-05-23 12:28:17 -07:00
parent fae03042cb
commit 0f9741bb14
9 changed files with 166 additions and 232 deletions

View File

@@ -26,15 +26,11 @@ export default class TextChannel extends ServerChannel{
return this.client.setChannelNameAndTopic.apply(this.client, reg(this, arguments));
}
update(){
return this.client.updateChannel.apply(this.client, reg(this, arguments));
}
sendMessage(){
return this.client.sendMessage.apply(this.client, reg(this, arguments));
}
send() {
send(){
return this.client.sendMessage.apply(this.client, reg(this, arguments));
}
@@ -42,23 +38,23 @@ export default class TextChannel extends ServerChannel{
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
}
sendTTS() {
sendTTS(){
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
}
sendFile() {
sendFile(){
return this.client.sendFile.apply(this.client, reg(this, arguments));
}
getLogs() {
getLogs(){
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
}
startTyping() {
startTyping(){
return this.client.startTyping.apply(this.client, reg(this, arguments));
}
stopTyping() {
stopTyping(){
return this.client.stopTyping.apply(this.client, reg(this, arguments));
}
}