Interface ServerMemberBanEvent
-
- All Superinterfaces:
Event,ServerEvent,ServerMemberEvent,UserEvent
public interface ServerMemberBanEvent extends ServerMemberEvent
A server member ban event.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CompletableFuture<Optional<Ban>>requestBan()Requests the Ban object of the event.default CompletableFuture<Optional<String>>requestReason()Requests the reason of the ban.-
Methods inherited from interface org.javacord.api.event.server.ServerEvent
getServer
-
-
-
-
Method Detail
-
requestBan
CompletableFuture<Optional<Ban>> requestBan()
Requests the Ban object of the event.- Returns:
- The ban object.
-
requestReason
default CompletableFuture<Optional<String>> requestReason()
Requests the reason of the ban.- Returns:
- The reason of the ban.
-
-