mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
add webhooks v8 (#759)
* add webhook structure and getChannelWebhooks as well as getServerWebhooks * add sendMessage * add the ability to edit create and delete hooks * remove server wide cache and add getter.
This commit is contained in:
@@ -10,6 +10,7 @@ export default class TextChannel extends ServerChannel{
|
||||
|
||||
this.topic = data.topic;
|
||||
this.lastMessageID = data.last_message_id || data.lastMessageID;
|
||||
this.webhooks = new Cache("id");
|
||||
this.messages = new Cache("id", client.options.maxCachedMessages);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user