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 java.util.Optional<ServerChannel>asChannel()Gets the target as channel.default java.util.Optional<Role>asRole()Gets the target as role.default java.util.Optional<Server>asServer()Gets the target as server.default java.util.concurrent.CompletableFuture<User>asUser()Gets the target as user.default java.util.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, 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 java.util.concurrent.CompletableFuture<User> asUser()
Gets the target as user.- Returns:
- The target as user.
-
asServer
default java.util.Optional<Server> asServer()
Gets the target as server.- Returns:
- The target as server.
-
asChannel
default java.util.Optional<ServerChannel> asChannel()
Gets the target as channel.- Returns:
- The target as channel.
-
asRole
default java.util.Optional<Role> asRole()
Gets the target as role.- Returns:
- The target as role.
-
asWebhook
default java.util.Optional<Webhook> asWebhook()
Gets the target as webhook.- Returns:
- The target as webhook.
-
-