fix: automod
This commit is contained in:
parent
557a77e07b
commit
e407700865
@ -236,7 +236,7 @@ class AutoModerationRule extends Base {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the actions for this auto moderation rule.
|
* 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
|
* @param {string} [reason] The reason for changing the actions of this auto moderation rule
|
||||||
* @returns {Promise<AutoModerationRule>}
|
* @returns {Promise<AutoModerationRule>}
|
||||||
*/
|
*/
|
||||||
|
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
@ -5022,7 +5022,7 @@ export class AutoModerationRule extends Base {
|
|||||||
public setPresets(presets: AutoModerationRuleKeywordPresetType[], reason?: string): Promise<AutoModerationRule>;
|
public setPresets(presets: AutoModerationRuleKeywordPresetType[], reason?: string): Promise<AutoModerationRule>;
|
||||||
public setAllowList(allowList: string[], reason?: string): Promise<AutoModerationRule>;
|
public setAllowList(allowList: string[], reason?: string): Promise<AutoModerationRule>;
|
||||||
public setMentionTotalLimit(mentionTotalLimit: number, reason?: string): Promise<AutoModerationRule>;
|
public setMentionTotalLimit(mentionTotalLimit: number, reason?: string): Promise<AutoModerationRule>;
|
||||||
public setActions(actions: AutoModerationActionOptions, reason?: string): Promise<AutoModerationRule>;
|
public setActions(actions: AutoModerationActionOptions[], reason?: string): Promise<AutoModerationRule>;
|
||||||
public setEnabled(enabled?: boolean, reason?: string): Promise<AutoModerationRule>;
|
public setEnabled(enabled?: boolean, reason?: string): Promise<AutoModerationRule>;
|
||||||
public setExemptRoles(
|
public setExemptRoles(
|
||||||
roles: Collection<Snowflake, Role> | RoleResolvable[],
|
roles: Collection<Snowflake, Role> | RoleResolvable[],
|
||||||
@ -5108,7 +5108,7 @@ export interface AutoModerationRuleCreateOptions {
|
|||||||
eventType: AutoModerationRuleEventType | AutoModerationRuleEventTypes;
|
eventType: AutoModerationRuleEventType | AutoModerationRuleEventTypes;
|
||||||
triggerType: AutoModerationRuleTriggerType | AutoModerationRuleTriggerTypes;
|
triggerType: AutoModerationRuleTriggerType | AutoModerationRuleTriggerTypes;
|
||||||
triggerMetadata?: AutoModerationTriggerMetadataOptions;
|
triggerMetadata?: AutoModerationTriggerMetadataOptions;
|
||||||
actions: AutoModerationActionOptions;
|
actions: AutoModerationActionOptions[];
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
exemptRoles?: Collection<Snowflake, Role> | RoleResolvable[];
|
exemptRoles?: Collection<Snowflake, Role> | RoleResolvable[];
|
||||||
exemptChannels?: Collection<Snowflake, GuildBasedChannel> | GuildChannelResolvable[];
|
exemptChannels?: Collection<Snowflake, GuildBasedChannel> | GuildChannelResolvable[];
|
||||||
|
Loading…
Reference in New Issue
Block a user