mirror of
https://github.com/danbulant/discord.js
synced 2026-06-08 17:21:31 +00: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));
|
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));
|
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() {
|
getLogs() {
|
||||||
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
|
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -197,5 +197,9 @@ export default class Server extends Equality {
|
||||||
getBans(callback) {
|
getBans(callback) {
|
||||||
return this.client.getBans.apply(this.client, [this, 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() {
|
getLogs() {
|
||||||
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
|
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));
|
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) {
|
addTo(role, callback) {
|
||||||
return this.client.addMemberToRole.apply(this.client, [this, role, callback]);
|
return this.client.addMemberToRole.apply(this.client, [this, role, callback]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue