mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
updateRole and deleteInvite
This commit is contained in:
@@ -37,7 +37,7 @@ class Message{
|
||||
this.mentions.add(client.internal.users.add(new User(mention, client)));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
isMentioned(user){
|
||||
user = this.client.internal.resolver.resolveUser(user);
|
||||
if (user) {
|
||||
@@ -50,19 +50,19 @@ class Message{
|
||||
toString(){
|
||||
return this.content;
|
||||
}
|
||||
|
||||
|
||||
delete(){
|
||||
return this.client.deleteMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
update(){
|
||||
return this.client.updateMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
reply(){
|
||||
return this.client.reply.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
replyTTS(){
|
||||
return this.client.replyTTS.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
@@ -26,11 +26,11 @@ class PMChannel extends Equality{
|
||||
toString(){
|
||||
return this.recipient.toString();
|
||||
}
|
||||
|
||||
|
||||
sendMessage(){
|
||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
sendTTSMessage(){
|
||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ class ServerChannel extends Channel{
|
||||
permsOf(user){
|
||||
return this.permissionsOf(user);
|
||||
}
|
||||
|
||||
|
||||
mention(){
|
||||
return `<#${this.id}>`;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ class ServerChannel extends Channel{
|
||||
toString(){
|
||||
return this.mention();
|
||||
}
|
||||
|
||||
|
||||
setName(){
|
||||
return this.client.setChannelName.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
@@ -19,23 +19,23 @@ class TextChannel extends ServerChannel{
|
||||
get lastMessage(){
|
||||
return this.messages.get("id", this.lastMessageID);
|
||||
}
|
||||
|
||||
|
||||
setTopic(){
|
||||
return this.client.setTopic.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
setNameAndTopic(){
|
||||
return this.client.setChannelNameAndTopic.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
update(){
|
||||
return this.client.updateChannel.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
sendMessage(){
|
||||
return this.client.sendMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
|
||||
sendTTSMessage(){
|
||||
return this.client.sendTTSMessage.apply(this.client, reg(this, arguments));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user