mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Added startTyping stopTyping and createChannel
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -198,4 +198,8 @@ export default class Server extends Equality {
|
|||||||
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]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user