mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Add client.getMessage() (#428)
* Add client.getMessage * Add shortcuts * build it.. * Add missing ~ in note docs * ............
This commit is contained in:
@@ -55,4 +55,8 @@ export default class PMChannel extends Channel {
|
||||
getLogs() {
|
||||
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
getMessage() {
|
||||
return this.client.getMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +50,10 @@ export default class TextChannel extends ServerChannel{
|
||||
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
getMessage() {
|
||||
return this.client.getMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
startTyping(){
|
||||
return this.client.startTyping.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
@@ -114,6 +114,10 @@ export default class User extends Equality{
|
||||
return this.client.getChannelLogs.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
getMessage() {
|
||||
return this.client.getMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
hasRole(role) {
|
||||
return this.client.memberHasRole.apply(this.client, [this, role]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user