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 java.util.concurrent.CompletableFuture<Ban>requestBan()Requests the Ban object of the event.default java.util.concurrent.CompletableFuture<java.util.Optional<java.lang.String>>requestReason()Requests the reason of the ban.-
Methods inherited from interface org.javacord.api.event.server.ServerEvent
getServer
-
-
-
-
Method Detail
-
requestBan
java.util.concurrent.CompletableFuture<Ban> requestBan()
Requests the Ban object of the event.- Returns:
- The ban object.
-
requestReason
default java.util.concurrent.CompletableFuture<java.util.Optional<java.lang.String>> requestReason()
Requests the reason of the ban.- Returns:
- The reason of the ban.
-
-