diff --git a/packages/discord.js/src/structures/GuildAuditLogsEntry.js b/packages/discord.js/src/structures/GuildAuditLogsEntry.js index 68bb66545029..0741d10d27b1 100644 --- a/packages/discord.js/src/structures/GuildAuditLogsEntry.js +++ b/packages/discord.js/src/structures/GuildAuditLogsEntry.js @@ -80,59 +80,6 @@ const Targets = { * @typedef {string} AuditLogTargetType */ -/** - * The action of an entry. Here are the available actions: - * * GuildUpdate - * * ChannelCreate - * * ChannelUpdate - * * ChannelDelete - * * ChannelOverwriteCreate - * * ChannelOverwriteUpdate - * * ChannelOverwriteDelete - * * MemberKick - * * MemberPrune - * * MemberBanAdd - * * MemberBanRemove - * * MemberUpdate - * * MemberRoleUpdate - * * MemberMove - * * MemberDisconnect - * * BotAdd - * * RoleCreate - * * RoleUpdate - * * RoleDelete - * * InviteCreate - * * InviteUpdate - * * InviteDelete - * * WebhookCreate - * * WebhookUpdate - * * WebhookDelete - * * EmojiCreate - * * EmojiUpdate - * * EmojiDelete - * * MessageDelete - * * MessageBulkDelete - * * MessagePin - * * MessageUnpin - * * IntegrationCreate - * * IntegrationUpdate - * * IntegrationDelete - * * StageInstanceCreate - * * StageInstanceUpdate - * * StageInstanceDelete - * * StickerCreate - * * StickerUpdate - * * StickerDelete - * * GuildScheduledEventCreate - * * GuildScheduledEventUpdate - * * GuildScheduledEventDelete - * * ThreadCreate - * * ThreadUpdate - * * ThreadDelete - * * ApplicationCommandPermissionUpdate - * @typedef {string} AuditLogAction - */ - /** * Audit logs entry. */ @@ -160,9 +107,9 @@ class GuildAuditLogsEntry { /** * Specific action type of this entry in its string presentation - * @type {AuditLogAction} + * @type {AuditLogEvent} */ - this.action = Object.keys(AuditLogEvent).find(k => AuditLogEvent[k] === data.action_type); + this.action = data.action_type; /** * The reason of this entry