#Trigger Metadata for Automod Rule Creation
1 messages · Page 1 of 1 (latest)
client.guilds.cache.get(guild.id). autoModerationRules.create({ name: "Bad words", eventType: 1, triggerType: 1, triggerMetadata: [{keywordFilter: ["cat"], presets: [1] }], actions: [{ type: 1 }], enabled: true })```
Still gives same error.