From 6a2fa70b8e79a460be38916eeb605976ad6fe68b Mon Sep 17 00:00:00 2001 From: muchnameless <12682826+muchnameless@users.noreply.github.com> Date: Wed, 23 Feb 2022 08:36:11 +0100 Subject: [PATCH] feat: re-export AuditLogEvent enum (#7528) --- packages/discord.js/src/index.js | 1 + packages/discord.js/src/structures/Guild.js | 2 +- packages/discord.js/typings/index.d.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/discord.js/src/index.js b/packages/discord.js/src/index.js index 784c741b6..6c3421a78 100644 --- a/packages/discord.js/src/index.js +++ b/packages/discord.js/src/index.js @@ -164,6 +164,7 @@ exports.ActivityType = require('discord-api-types/v9').ActivityType; exports.ApplicationCommandType = require('discord-api-types/v9').ApplicationCommandType; exports.ApplicationCommandOptionType = require('discord-api-types/v9').ApplicationCommandOptionType; exports.ApplicationCommandPermissionType = require('discord-api-types/v9').ApplicationCommandPermissionType; +exports.AuditLogEvent = require('discord-api-types/v9').AuditLogEvent; exports.ButtonStyle = require('discord-api-types/v9').ButtonStyle; exports.ChannelType = require('discord-api-types/v9').ChannelType; exports.ComponentType = require('discord-api-types/v9').ComponentType; diff --git a/packages/discord.js/src/structures/Guild.js b/packages/discord.js/src/structures/Guild.js index de8264df0..f0f502158 100644 --- a/packages/discord.js/src/structures/Guild.js +++ b/packages/discord.js/src/structures/Guild.js @@ -691,7 +691,7 @@ class Guild extends AnonymousGuild { * @property {Snowflake|GuildAuditLogsEntry} [before] Only return entries before this entry * @property {number} [limit] The number of entries to return * @property {UserResolvable} [user] Only return entries for actions made by this user - * @property {AuditLogAction|number} [type] Only return entries for this action type + * @property {?AuditLogEvent} [type] Only return entries for this action type */ /** diff --git a/packages/discord.js/typings/index.d.ts b/packages/discord.js/typings/index.d.ts index 5cea58bf4..a86dbf46b 100644 --- a/packages/discord.js/typings/index.d.ts +++ b/packages/discord.js/typings/index.d.ts @@ -5111,6 +5111,7 @@ export { ApplicationCommandType, ApplicationCommandOptionType, ApplicationCommandPermissionType, + AuditLogEvent, ButtonStyle, ChannelType, ComponentType,