fix: v13 add automoderation events to WSEvents

#9102 djs
This commit is contained in:
Elysia 2023-02-12 17:43:14 +07:00
parent 7329a53b34
commit 64c2a5354f
2 changed files with 12 additions and 0 deletions

View File

@ -546,6 +546,10 @@ exports.PartialTypes = keyMirror(['USER', 'CHANNEL', 'GUILD_MEMBER', 'MESSAGE',
* * APPLICATION_COMMAND_CREATE (deprecated) * * APPLICATION_COMMAND_CREATE (deprecated)
* * APPLICATION_COMMAND_DELETE (deprecated) * * APPLICATION_COMMAND_DELETE (deprecated)
* * APPLICATION_COMMAND_UPDATE (deprecated) * * APPLICATION_COMMAND_UPDATE (deprecated)
* * AUTO_MODERATION_ACTION_EXECUTION
* * AUTO_MODERATION_RULE_CREATE
* * AUTO_MODERATION_RULE_DELETE
* * AUTO_MODERATION_RULE_UPDATE
* * GUILD_CREATE * * GUILD_CREATE
* * GUILD_DELETE * * GUILD_DELETE
* * GUILD_UPDATE * * GUILD_UPDATE
@ -607,6 +611,10 @@ exports.WSEvents = keyMirror([
'APPLICATION_COMMAND_CREATE', 'APPLICATION_COMMAND_CREATE',
'APPLICATION_COMMAND_DELETE', 'APPLICATION_COMMAND_DELETE',
'APPLICATION_COMMAND_UPDATE', 'APPLICATION_COMMAND_UPDATE',
'AUTO_MODERATION_ACTION_EXECUTION',
'AUTO_MODERATION_RULE_CREATE',
'AUTO_MODERATION_RULE_DELETE',
'AUTO_MODERATION_RULE_UPDATE',
'GUILD_CREATE', 'GUILD_CREATE',
'GUILD_DELETE', 'GUILD_DELETE',
'GUILD_UPDATE', 'GUILD_UPDATE',

4
typings/index.d.ts vendored
View File

@ -7318,6 +7318,10 @@ export type WSEventType =
| 'APPLICATION_COMMAND_CREATE' | 'APPLICATION_COMMAND_CREATE'
| 'APPLICATION_COMMAND_DELETE' | 'APPLICATION_COMMAND_DELETE'
| 'APPLICATION_COMMAND_UPDATE' | 'APPLICATION_COMMAND_UPDATE'
| 'AUTO_MODERATION_ACTION_EXECUTION'
| 'AUTO_MODERATION_RULE_CREATE'
| 'AUTO_MODERATION_RULE_DELETE'
| 'AUTO_MODERATION_RULE_UPDATE'
| 'GUILD_CREATE' | 'GUILD_CREATE'
| 'GUILD_DELETE' | 'GUILD_DELETE'
| 'GUILD_UPDATE' | 'GUILD_UPDATE'