feat(GuildAuditLogs): add new event types (#3584)

* adds more audit-log entries

this adds additional audit-log types from https://discordapp/discord-api-docs/pull/1191

* typings for new audit-log entries

* typings for new audit-log entries

* fix action numbers
This commit is contained in:
Carter
2019-11-19 13:51:26 -07:00
committed by SpaceEEC
parent 1352bff2fd
commit 1bcc0c2e1d
2 changed files with 27 additions and 0 deletions

9
typings/index.d.ts vendored
View File

@@ -2188,6 +2188,9 @@ declare module 'discord.js' {
MEMBER_BAN_REMOVE?: number;
MEMBER_UPDATE?: number;
MEMBER_ROLE_UPDATE?: number;
MEMBER_MOVE?: number;
MEMBER_DISCONNECT?: number;
BOT_ADD?: number;
ROLE_CREATE?: number;
ROLE_UPDATE?: number;
ROLE_DELETE?: number;
@@ -2201,6 +2204,12 @@ declare module 'discord.js' {
EMOJI_UPDATE?: number;
EMOJI_DELETE?: number;
MESSAGE_DELETE?: number;
MESSAGE_BULK_DELETE?: number;
MESSAGE_PIN?: number;
MESSAGE_UNPIN?: number;
INTEGRATION_CREATE?: number;
INTEGRATION_UPDATE?: number;
INTEGRATION_DELETE?: number;
}
type GuildAuditLogsActionType = 'CREATE'