From 64c2a5354f59ad57cbe7411757b6391691d9da6d Mon Sep 17 00:00:00 2001 From: Elysia <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 12 Feb 2023 17:43:14 +0700 Subject: [PATCH] fix: v13 add automoderation events to WSEvents #9102 djs --- src/util/Constants.js | 8 ++++++++ typings/index.d.ts | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/util/Constants.js b/src/util/Constants.js index bfb55d8..db3a646 100644 --- a/src/util/Constants.js +++ b/src/util/Constants.js @@ -546,6 +546,10 @@ exports.PartialTypes = keyMirror(['USER', 'CHANNEL', 'GUILD_MEMBER', 'MESSAGE', * * APPLICATION_COMMAND_CREATE (deprecated) * * APPLICATION_COMMAND_DELETE (deprecated) * * APPLICATION_COMMAND_UPDATE (deprecated) + * * AUTO_MODERATION_ACTION_EXECUTION + * * AUTO_MODERATION_RULE_CREATE + * * AUTO_MODERATION_RULE_DELETE + * * AUTO_MODERATION_RULE_UPDATE * * GUILD_CREATE * * GUILD_DELETE * * GUILD_UPDATE @@ -607,6 +611,10 @@ exports.WSEvents = keyMirror([ 'APPLICATION_COMMAND_CREATE', 'APPLICATION_COMMAND_DELETE', 'APPLICATION_COMMAND_UPDATE', + 'AUTO_MODERATION_ACTION_EXECUTION', + 'AUTO_MODERATION_RULE_CREATE', + 'AUTO_MODERATION_RULE_DELETE', + 'AUTO_MODERATION_RULE_UPDATE', 'GUILD_CREATE', 'GUILD_DELETE', 'GUILD_UPDATE', diff --git a/typings/index.d.ts b/typings/index.d.ts index bbfbe17..7cca0f1 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -7318,6 +7318,10 @@ export type WSEventType = | 'APPLICATION_COMMAND_CREATE' | 'APPLICATION_COMMAND_DELETE' | 'APPLICATION_COMMAND_UPDATE' + | 'AUTO_MODERATION_ACTION_EXECUTION' + | 'AUTO_MODERATION_RULE_CREATE' + | 'AUTO_MODERATION_RULE_DELETE' + | 'AUTO_MODERATION_RULE_UPDATE' | 'GUILD_CREATE' | 'GUILD_DELETE' | 'GUILD_UPDATE'