Package discord4j.core.event.domain
Class AuditLogEntryCreateEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.guild.GuildEvent
discord4j.core.event.domain.AuditLogEntryCreateEvent
Dispatched when an Entry of an Audit Log is created in a guild.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorDescriptionAuditLogEntryCreateEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, AuditLogEntry auditLogEntry) -
Method Summary
Modifier and TypeMethodDescriptionGet theAuditLogEntry
related to this event.getGuild()
Requests to retrieve theGuild
whose the entry was created.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
AuditLogEntryCreateEvent
public AuditLogEntryCreateEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long guildId, AuditLogEntry auditLogEntry)
-
-
Method Details
-
getGuildId
- Returns:
- The ID of the
Guild
.
-
getGuild
Requests to retrieve theGuild
whose the entry was created. -
getAuditLogEntry
Get theAuditLogEntry
related to this event.- Returns:
- a
AuditLogEntry
.
-
toString
-