mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 15:14:44 +12:00
Added startTyping stopTyping and createChannel
This commit is contained in:
parent
10442e5634
commit
eb500ecd24
5 changed files with 30 additions and 0 deletions
|
@ -19,4 +19,6 @@ export default class Channel extends Equality {
|
|||
return this.client.deleteChannel.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue