Skip to content

Commit

Permalink
fix: keep other properties in triggerMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Dec 31, 2022
1 parent f2d3abe commit 5af5731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/AutoModerationRule.js
Expand Up @@ -238,7 +238,7 @@ class AutoModerationRule extends Base {
* @returns {Promise<AutoModerationRule>}
*/
setMentionRaidProtectionEnabled(mentionRaidProtectionEnabled, reason) {
return this.edit({ triggerMetadata: { mentionRaidProtectionEnabled }, reason });
return this.edit({ triggerMetadata: { ...this.triggerMetadata, mentionRaidProtectionEnabled }, reason });
}

/**
Expand Down

0 comments on commit 5af5731

Please sign in to comment.