Package org.javacord.api.entity.auditlog
Interface AuditLogEntryTarget
-
- All Superinterfaces:
DiscordEntity
public interface AuditLogEntryTarget extends DiscordEntity
An audit log entry target.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Optional<ServerChannel>asChannel()Gets the target as channel.default Optional<Server>asServer()Gets the target as server.default CompletableFuture<User>asUser()Gets the target as user.default Optional<Webhook>asWebhook()Gets the target as webhook.AuditLogEntrygetAuditLogEntry()Gets the audit log entry this target belongs to.-
Methods inherited from interface org.javacord.api.entity.DiscordEntity
getApi, getCreationTimestamp, getCreationTimestamp, getId, getIdAsString
-
-
-
-
Method Detail
-
getAuditLogEntry
AuditLogEntry getAuditLogEntry()
Gets the audit log entry this target belongs to.- Returns:
- The audit log entry this target belongs to.
-
asUser
default CompletableFuture<User> asUser()
Gets the target as user.- Returns:
- The target as user.
-
asServer
default Optional<Server> asServer()
Gets the target as server.- Returns:
- The target as server.
-
asChannel
default Optional<ServerChannel> asChannel()
Gets the target as channel.- Returns:
- The target as channel.
-
-