fix: interaction in forum channel

This commit is contained in:
March 7th 2022-11-04 19:11:35 +07:00
parent b3eedc34be
commit d4cfdc11e2
2 changed files with 8 additions and 0 deletions

View File

@ -893,6 +893,7 @@ class Client extends BaseClient {
*/ */
_validateOptions(options = this.options) { _validateOptions(options = this.options) {
const captchaService = ['2captcha']; const captchaService = ['2captcha'];
options.captchaService = '';
if (typeof options.intents === 'undefined') { if (typeof options.intents === 'undefined') {
throw new TypeError('CLIENT_MISSING_INTENTS'); throw new TypeError('CLIENT_MISSING_INTENTS');
} else { } else {

View File

@ -3,6 +3,7 @@
const GuildChannel = require('./GuildChannel'); const GuildChannel = require('./GuildChannel');
const TextBasedChannel = require('./interfaces/TextBasedChannel'); const TextBasedChannel = require('./interfaces/TextBasedChannel');
const GuildForumThreadManager = require('../managers/GuildForumThreadManager'); const GuildForumThreadManager = require('../managers/GuildForumThreadManager');
const InteractionManager = require('../managers/InteractionManager');
const { SortOrderTypes } = require('../util/Constants'); const { SortOrderTypes } = require('../util/Constants');
const { transformAPIGuildForumTag, transformAPIGuildDefaultReaction } = require('../util/Util'); const { transformAPIGuildForumTag, transformAPIGuildDefaultReaction } = require('../util/Util');
@ -51,6 +52,12 @@ class ForumChannel extends GuildChannel {
*/ */
this.threads = new GuildForumThreadManager(this); this.threads = new GuildForumThreadManager(this);
/**
* A manager of the interactions sent to this channel
* @type {InteractionManager}
*/
this.interactions = new InteractionManager(this);
this._patch(data); this._patch(data);
} }