From 4346ced6dea6207d8b86985b973a245b71c8b699 Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Sun, 14 Nov 2021 20:09:01 -0600 Subject: [PATCH] align audit log actions per group --- index.d.ts | 116 +++++++++++++++++++++++----------------------- lib/Constants.js | 118 +++++++++++++++++++++++------------------------ 2 files changed, 117 insertions(+), 117 deletions(-) diff --git a/index.d.ts b/index.d.ts index a00762c491..8804f4eafc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1474,64 +1474,64 @@ declare namespace Eris { MESSAGE: 3; }; AuditLogActions: { - GUILD_UPDATE: 1; - - CHANNEL_CREATE: 10; - CHANNEL_UPDATE: 11; - CHANNEL_DELETE: 12; - CHANNEL_OVERWRITE_CREATE: 13; - CHANNEL_OVERWRITE_UPDATE: 14; - CHANNEL_OVERWRITE_DELETE: 15; - - MEMBER_KICK: 20; - MEMBER_PRUNE: 21; - MEMBER_BAN_ADD: 22; - MEMBER_BAN_REMOVE: 23; - MEMBER_UPDATE: 24; - MEMBER_ROLE_UPDATE: 25; - MEMBER_MOVE: 26; - MEMBER_DISCONNECT: 27; - BOT_ADD: 28; - - ROLE_CREATE: 30; - ROLE_UPDATE: 31; - ROLE_DELETE: 32; - - INVITE_CREATE: 40; - INVITE_UPDATE: 41; - INVITE_DELETE: 42; - - WEBHOOK_CREATE: 50; - WEBHOOK_UPDATE: 51; - WEBHOOK_DELETE: 52; - - EMOJI_CREATE: 60; - EMOJI_UPDATE: 61; - EMOJI_DELETE: 62; - - MESSAGE_DELETE: 72; - MESSAGE_BULK_DELETE: 73; - MESSAGE_PIN: 74; - MESSAGE_UNPIN: 75; - - INTEGRATION_CREATE: 80; - INTEGRATION_UPDATE: 81; - INTEGRATION_DELETE: 82; - STAGE_INSTANCE_CREATE: 83; - STAGE_INSTANCE_UPDATE: 84; - STAGE_INSTANCE_DELETE: 85; - - STICKER_CREATE: 90; - STICKER_UPDATE: 91; - STICKER_DELETE: 92; - - GUILD_SCHEDULED_EVENT_CREATE: 100; - GUILD_SCHEDULED_EVENT_UPDATE: 101; - GUILD_SCHEDULED_EVENT_DELETE: 102; - - THREAD_CREATE: 110; - THREAD_UPDATE: 111; - THREAD_DELETE: 112; + GUILD_UPDATE: 1; + + CHANNEL_CREATE: 10; + CHANNEL_UPDATE: 11; + CHANNEL_DELETE: 12; + CHANNEL_OVERWRITE_CREATE: 13; + CHANNEL_OVERWRITE_UPDATE: 14; + CHANNEL_OVERWRITE_DELETE: 15; + + MEMBER_KICK: 20; + MEMBER_PRUNE: 21; + MEMBER_BAN_ADD: 22; + MEMBER_BAN_REMOVE: 23; + MEMBER_UPDATE: 24; + MEMBER_ROLE_UPDATE: 25; + MEMBER_MOVE: 26; + MEMBER_DISCONNECT: 27; + BOT_ADD: 28; + + ROLE_CREATE: 30; + ROLE_UPDATE: 31; + ROLE_DELETE: 32; + + INVITE_CREATE: 40; + INVITE_UPDATE: 41; + INVITE_DELETE: 42; + + WEBHOOK_CREATE: 50; + WEBHOOK_UPDATE: 51; + WEBHOOK_DELETE: 52; + + EMOJI_CREATE: 60; + EMOJI_UPDATE: 61; + EMOJI_DELETE: 62; + + MESSAGE_DELETE: 72; + MESSAGE_BULK_DELETE: 73; + MESSAGE_PIN: 74; + MESSAGE_UNPIN: 75; + + INTEGRATION_CREATE: 80; + INTEGRATION_UPDATE: 81; + INTEGRATION_DELETE: 82; + STAGE_INSTANCE_CREATE: 83; + STAGE_INSTANCE_UPDATE: 84; + STAGE_INSTANCE_DELETE: 85; + + STICKER_CREATE: 90; + STICKER_UPDATE: 91; + STICKER_DELETE: 92; + + GUILD_SCHEDULED_EVENT_CREATE: 100; + GUILD_SCHEDULED_EVENT_UPDATE: 101; + GUILD_SCHEDULED_EVENT_DELETE: 102; + + THREAD_CREATE: 110; + THREAD_UPDATE: 111; + THREAD_DELETE: 112; APPLICATION_COMMAND_PERMISSION_UPDATE: 121; }; diff --git a/lib/Constants.js b/lib/Constants.js index 8ec67706ea..935e3796f9 100644 --- a/lib/Constants.js +++ b/lib/Constants.js @@ -37,65 +37,65 @@ module.exports.ApplicationCommandTypes = { }; module.exports.AuditLogActions = { - GUILD_UPDATE: 1, - - CHANNEL_CREATE: 10, - CHANNEL_UPDATE: 11, - CHANNEL_DELETE: 12, - CHANNEL_OVERWRITE_CREATE: 13, - CHANNEL_OVERWRITE_UPDATE: 14, - CHANNEL_OVERWRITE_DELETE: 15, - - MEMBER_KICK: 20, - MEMBER_PRUNE: 21, - MEMBER_BAN_ADD: 22, - MEMBER_BAN_REMOVE: 23, - MEMBER_UPDATE: 24, - MEMBER_ROLE_UPDATE: 25, - MEMBER_MOVE: 26, - MEMBER_DISCONNECT: 27, - BOT_ADD: 28, - - ROLE_CREATE: 30, - ROLE_UPDATE: 31, - ROLE_DELETE: 32, - - INVITE_CREATE: 40, - INVITE_UPDATE: 41, - INVITE_DELETE: 42, - - WEBHOOK_CREATE: 50, - WEBHOOK_UPDATE: 51, - WEBHOOK_DELETE: 52, - - EMOJI_CREATE: 60, - EMOJI_UPDATE: 61, - EMOJI_DELETE: 62, - - MESSAGE_DELETE: 72, - MESSAGE_BULK_DELETE: 73, - MESSAGE_PIN: 74, - MESSAGE_UNPIN: 75, - - INTEGRATION_CREATE: 80, - INTEGRATION_UPDATE: 81, - INTEGRATION_DELETE: 82, - - STAGE_INSTANCE_CREATE: 83, - STAGE_INSTANCE_UPDATE: 84, - STAGE_INSTANCE_DELETE: 85, - - STICKER_CREATE: 90, - STICKER_UPDATE: 91, - STICKER_DELETE: 92, - - GUILD_SCHEDULED_EVENT_CREATE: 100, - GUILD_SCHEDULED_EVENT_UPDATE: 101, - GUILD_SCHEDULED_EVENT_DELETE: 102, - - THREAD_CREATE: 110, - THREAD_UPDATE: 111, - THREAD_DELETE: 112, + GUILD_UPDATE: 1, + + CHANNEL_CREATE: 10, + CHANNEL_UPDATE: 11, + CHANNEL_DELETE: 12, + CHANNEL_OVERWRITE_CREATE: 13, + CHANNEL_OVERWRITE_UPDATE: 14, + CHANNEL_OVERWRITE_DELETE: 15, + + MEMBER_KICK: 20, + MEMBER_PRUNE: 21, + MEMBER_BAN_ADD: 22, + MEMBER_BAN_REMOVE: 23, + MEMBER_UPDATE: 24, + MEMBER_ROLE_UPDATE: 25, + MEMBER_MOVE: 26, + MEMBER_DISCONNECT: 27, + BOT_ADD: 28, + + ROLE_CREATE: 30, + ROLE_UPDATE: 31, + ROLE_DELETE: 32, + + INVITE_CREATE: 40, + INVITE_UPDATE: 41, + INVITE_DELETE: 42, + + WEBHOOK_CREATE: 50, + WEBHOOK_UPDATE: 51, + WEBHOOK_DELETE: 52, + + EMOJI_CREATE: 60, + EMOJI_UPDATE: 61, + EMOJI_DELETE: 62, + + MESSAGE_DELETE: 72, + MESSAGE_BULK_DELETE: 73, + MESSAGE_PIN: 74, + MESSAGE_UNPIN: 75, + + INTEGRATION_CREATE: 80, + INTEGRATION_UPDATE: 81, + INTEGRATION_DELETE: 82, + + STAGE_INSTANCE_CREATE: 83, + STAGE_INSTANCE_UPDATE: 84, + STAGE_INSTANCE_DELETE: 85, + + STICKER_CREATE: 90, + STICKER_UPDATE: 91, + STICKER_DELETE: 92, + + GUILD_SCHEDULED_EVENT_CREATE: 100, + GUILD_SCHEDULED_EVENT_UPDATE: 101, + GUILD_SCHEDULED_EVENT_DELETE: 102, + + THREAD_CREATE: 110, + THREAD_UPDATE: 111, + THREAD_DELETE: 112, APPLICATION_COMMAND_PERMISSION_UPDATE: 121 };