Interface PermissionLevel
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PermissionLevel
Permission level of a bot command.
-
-
Field Summary
Fields Modifier and Type Field Description static PermissionLevel
BOT_ADMIN
static PermissionLevel
BOT_OWNER
static PermissionLevel
PUBLIC
static PermissionLevel
SERVER_ADMIN
static PermissionLevel
SERVER_MOD
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static PermissionLevel
forSpecificRole(java.util.function.Function<Context,reactor.core.publisher.Mono<discord4j.core.object.util.Snowflake>> roleIdGetter)
reactor.core.publisher.Mono<Boolean>
isGranted(Context ctx)
Whether the user is granted the permission to use the command.
-
-
-
Field Detail
-
BOT_OWNER
static final PermissionLevel BOT_OWNER
-
BOT_ADMIN
static final PermissionLevel BOT_ADMIN
-
SERVER_ADMIN
static final PermissionLevel SERVER_ADMIN
-
SERVER_MOD
static final PermissionLevel SERVER_MOD
-
PUBLIC
static final PermissionLevel PUBLIC
-
-
Method Detail
-
forSpecificRole
static PermissionLevel forSpecificRole(java.util.function.Function<Context,reactor.core.publisher.Mono<discord4j.core.object.util.Snowflake>> roleIdGetter)
-
-