feat: backport automod

This commit is contained in:
March 7th 2023-01-14 18:07:56 +07:00
parent 2ecf50b131
commit 1ac8fd96ef
2 changed files with 3 additions and 0 deletions

View File

@ -730,6 +730,7 @@ exports.IntegrationExpireBehaviors = createEnum(['REMOVE_ROLE', 'KICK']);
* * THREAD_STARTER_MESSAGE * * THREAD_STARTER_MESSAGE
* * GUILD_INVITE_REMINDER * * GUILD_INVITE_REMINDER
* * CONTEXT_MENU_COMMAND * * CONTEXT_MENU_COMMAND
* * AUTO_MODERATION_ACTION
* @typedef {string} MessageType * @typedef {string} MessageType
* @see {@link https://discord.com/developers/docs/resources/channel#message-object-message-types} * @see {@link https://discord.com/developers/docs/resources/channel#message-object-message-types}
*/ */
@ -758,6 +759,7 @@ exports.MessageTypes = [
'THREAD_STARTER_MESSAGE', 'THREAD_STARTER_MESSAGE',
'GUILD_INVITE_REMINDER', 'GUILD_INVITE_REMINDER',
'CONTEXT_MENU_COMMAND', 'CONTEXT_MENU_COMMAND',
'AUTO_MODERATION_ACTION',
]; ];
/** /**

1
typings/enums.d.ts vendored
View File

@ -171,6 +171,7 @@ export const enum MessageTypes {
THREAD_STARTER_MESSAGE, THREAD_STARTER_MESSAGE,
GUILD_INVITE_REMINDER, GUILD_INVITE_REMINDER,
CONTEXT_MENU_COMMAND, CONTEXT_MENU_COMMAND,
AUTO_MODERATION_ACTION,
} }
export const enum DefaultMessageNotificationLevels { export const enum DefaultMessageNotificationLevels {