OutwalkStudios / discord-backup

a module for backing up and restoring discord servers.
MIT License
11 stars 11 forks source link

Automod rules are being loaded incorrectly #44

Open SjogrenDev opened 6 days ago

SjogrenDev commented 6 days ago

DiscordAPIError[50035]: Invalid Form Body 0[AUTO_MODERATION_MAX_RULES_OF_TYPE_EXCEEDED]: Maximum number of rules with trigger type 5 is 1 at handleErrors (/home/container/node_modules/@discordjs/rest/dist/index.js:727:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async SequentialHandler.runRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:1128:23) at async SequentialHandler.queueRequest (/home/container/node_modules/@discordjs/rest/dist/index.js:959:14) at async _REST.request (/home/container/node_modules/@discordjs/rest/dist/index.js:1272:22) at async AutoModerationRuleManager.create (/home/container/node_modules/discord.js/src/managers/AutoModerationRuleManager.js:122:18)

jleeson commented 3 days ago

@SjogrenDev would you mind providing the config you are passing to the backup.load function?