fix: interaction in forum channel
This commit is contained in:
parent
b3eedc34be
commit
d4cfdc11e2
@ -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 {
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user