Added startTyping stopTyping and createChannel

This commit is contained in:
Amish Shah 2015-12-05 17:21:32 +00:00
parent 10442e5634
commit eb500ecd24
5 changed files with 30 additions and 0 deletions

View file

@ -19,4 +19,6 @@ export default class Channel extends Equality {
return this.client.deleteChannel.apply(this.client, reg(this, arguments));
}
}

View file

@ -44,6 +44,14 @@ export default class PMChannel extends Channel {
return this.client.sendFile.apply(this.client, reg(this, arguments));
}
startTyping() {
return this.client.startTyping.apply(this.client, reg(this, arguments));
}
stopTyping() {
return this.client.startTyping.apply(this.client, reg(this, arguments));
}
getLogs() {
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
}

View file

@ -197,5 +197,9 @@ export default class Server extends Equality {
getBans(callback) {
return this.client.getBans.apply(this.client, [this, callback]);
}
createChannel() {
return this.client.createChannel.apply(this.client, reg(this, arguments));
}
}

View file

@ -53,4 +53,12 @@ export default class TextChannel extends ServerChannel{
getLogs() {
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
}
startTyping() {
return this.client.startTyping.apply(this.client, reg(this, arguments));
}
stopTyping() {
return this.client.startTyping.apply(this.client, reg(this, arguments));
}
}

View file

@ -82,6 +82,14 @@ export default class User extends Equality{
return this.client.sendFile.apply(this.client, reg(this, arguments));
}
startTyping() {
return this.client.startTyping.apply(this.client, reg(this, arguments));
}
stopTyping() {
return this.client.startTyping.apply(this.client, reg(this, arguments));
}
addTo(role, callback) {
return this.client.addMemberToRole.apply(this.client, [this, role, callback]);
}