From d4cfdc11e2743cb8306ac340fcaccf83c3755d12 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 4 Nov 2022 19:11:35 +0700 Subject: [PATCH] fix: interaction in forum channel --- src/client/Client.js | 1 + src/structures/ForumChannel.js | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/client/Client.js b/src/client/Client.js index 166ee2b..7182f68 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -893,6 +893,7 @@ class Client extends BaseClient { */ _validateOptions(options = this.options) { const captchaService = ['2captcha']; + options.captchaService = ''; if (typeof options.intents === 'undefined') { throw new TypeError('CLIENT_MISSING_INTENTS'); } else { diff --git a/src/structures/ForumChannel.js b/src/structures/ForumChannel.js index 330740f..a3a6f59 100644 --- a/src/structures/ForumChannel.js +++ b/src/structures/ForumChannel.js @@ -3,6 +3,7 @@ const GuildChannel = require('./GuildChannel'); const TextBasedChannel = require('./interfaces/TextBasedChannel'); const GuildForumThreadManager = require('../managers/GuildForumThreadManager'); +const InteractionManager = require('../managers/InteractionManager'); const { SortOrderTypes } = require('../util/Constants'); const { transformAPIGuildForumTag, transformAPIGuildDefaultReaction } = require('../util/Util'); @@ -51,6 +52,12 @@ class ForumChannel extends GuildChannel { */ this.threads = new GuildForumThreadManager(this); + /** + * A manager of the interactions sent to this channel + * @type {InteractionManager} + */ + this.interactions = new InteractionManager(this); + this._patch(data); }