From e40770086511f712f35e63091954bf0df99ffb51 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Mon, 26 Dec 2022 20:38:53 +0700 Subject: [PATCH] fix: automod --- src/structures/AutoModerationRule.js | 2 +- typings/index.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/structures/AutoModerationRule.js b/src/structures/AutoModerationRule.js index 2c909bb..f744ea5 100644 --- a/src/structures/AutoModerationRule.js +++ b/src/structures/AutoModerationRule.js @@ -236,7 +236,7 @@ class AutoModerationRule extends Base { /** * Sets the actions for this auto moderation rule. - * @param {AutoModerationActionOptions} actions The actions of this auto moderation rule + * @param {AutoModerationActionOptions[]} actions The actions of this auto moderation rule * @param {string} [reason] The reason for changing the actions of this auto moderation rule * @returns {Promise} */ diff --git a/typings/index.d.ts b/typings/index.d.ts index a8741bc..6e79eba 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -5022,7 +5022,7 @@ export class AutoModerationRule extends Base { public setPresets(presets: AutoModerationRuleKeywordPresetType[], reason?: string): Promise; public setAllowList(allowList: string[], reason?: string): Promise; public setMentionTotalLimit(mentionTotalLimit: number, reason?: string): Promise; - public setActions(actions: AutoModerationActionOptions, reason?: string): Promise; + public setActions(actions: AutoModerationActionOptions[], reason?: string): Promise; public setEnabled(enabled?: boolean, reason?: string): Promise; public setExemptRoles( roles: Collection | RoleResolvable[], @@ -5108,7 +5108,7 @@ export interface AutoModerationRuleCreateOptions { eventType: AutoModerationRuleEventType | AutoModerationRuleEventTypes; triggerType: AutoModerationRuleTriggerType | AutoModerationRuleTriggerTypes; triggerMetadata?: AutoModerationTriggerMetadataOptions; - actions: AutoModerationActionOptions; + actions: AutoModerationActionOptions[]; enabled?: boolean; exemptRoles?: Collection | RoleResolvable[]; exemptChannels?: Collection | GuildChannelResolvable[];