fix 🐛 Channel cache error #625

💀
This commit is contained in:
Elysia
2023-04-20 18:18:01 +07:00
parent f0f22f8cab
commit 709b138610
3 changed files with 13 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
const { Collection } = require('@discordjs/collection');
const GuildChannel = require('./GuildChannel');
const TextBasedChannel = require('./interfaces/TextBasedChannel');
const InteractionManager = require('../managers/InteractionManager');
const MessageManager = require('../managers/MessageManager');
const { VideoQualityModes } = require('../util/Constants');
const Permissions = require('../util/Permissions');
@@ -26,6 +27,14 @@ class BaseGuildVoiceChannel extends GuildChannel {
* @type {boolean}
*/
this.nsfw = Boolean(data.nsfw);
/**
* A manager of the interactions sent to this channel
* @type {InteractionManager}
*/
this.interactions = new InteractionManager(this);
this._patch(data);
}
_patch(data) {