mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
Added role shortcuts and to user also
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import Equality from "../Util/Equality";
|
||||
import {Endpoints} from "../Constants";
|
||||
import {reg} from "../Util/ArgumentRegulariser";
|
||||
|
||||
export default class User extends Equality{
|
||||
constructor(data, client){
|
||||
@@ -60,4 +61,20 @@ export default class User extends Equality{
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
sendMessage(){
|
||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
send() {
|
||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
sendTTSMessage(){
|
||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
sendTTS() {
|
||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user