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
ConstructorDescriptionGuildAuditLogEntryCreateEvent
(JDA api, long responseNumber, AuditLogEntry entry) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.guild.GenericGuildEvent
getGuild
Methods 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
TheAuditLogEntry
that was added to theGuild
- Returns:
- The added entry
-