Package net.dv8tion.jda.api.events.guild
Class GuildAuditLogEntryCreateEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.guild.GenericGuildEvent
net.dv8tion.jda.api.events.guild.GuildAuditLogEntryCreateEvent
- All Implemented Interfaces:
GenericEvent
Indicates that an
AuditLogEntry was added to a Guild.
This never provides a responsible user instance.
You can use AuditLogEntry.getUserIdLong() instead.
Requirements
This event requires the GUILD_MODERATION intent to be enabled.
-
Constructor Summary
ConstructorsConstructorDescriptionGuildAuditLogEntryCreateEvent(JDA api, long responseNumber, AuditLogEntry entry) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuildMethods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
GuildAuditLogEntryCreateEvent
public GuildAuditLogEntryCreateEvent(@Nonnull JDA api, long responseNumber, @Nonnull AuditLogEntry entry)
-
-
Method Details
-
getEntry
TheAuditLogEntrythat was added to theGuild- Returns:
- The added entry
-