mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
More things
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
var ServerChannel = require("./ServerChannel.js");
|
||||
var Cache = require("../Util/Cache.js");
|
||||
var reg = require("../Util/ArgumentRegulariser.js").reg;
|
||||
|
||||
class TextChannel extends ServerChannel{
|
||||
constructor(data, client, server){
|
||||
@@ -18,6 +19,18 @@ 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));
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = TextChannel;
|
||||
Reference in New Issue
Block a user