Uses of Interface
dev.sympho.bot_utils.access.GuildGroup
Packages that use GuildGroup
Package
Description
API for managing access to features.
Interfaces for handling user-triggered events in a generalized manner.
-
Uses of GuildGroup in dev.sympho.bot_utils.access
Subinterfaces of GuildGroup in dev.sympho.bot_utils.accessModifier and TypeInterfaceDescriptioninterfaceA guild group that also has a name.Methods in dev.sympho.bot_utils.access that return GuildGroupModifier and TypeMethodDescriptionstatic GuildGroupGroups.all(GuildGroup... groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.allGuild(GuildGroup... groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.allGuild(Iterable<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.allGuild(Stream<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.allGuild(Flux<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.any(GuildGroup... groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.static GuildGroupGroups.anyGuild(GuildGroup... groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.static GuildGroupGroups.anyGuild(Iterable<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.static GuildGroupGroups.anyGuild(Stream<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.static GuildGroupGroups.anyGuild(Flux<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.static GuildGroupGroups.hasGuildPermissions(discord4j.rest.util.PermissionSet permissions) Creates a group defined as all users that have the given permissions in the guild.static GuildGroupGroups.hasGuildPermissions(Supplier<discord4j.rest.util.PermissionSet> permissions) Creates a group defined as all users that have the given permissions in the guild.static GuildGroupGroups.hasGuildPermissions(Mono<discord4j.rest.util.PermissionSet> permissions) Creates a group defined as all users that have the given permissions in the guild.static GuildGroupCreates a group defined as all users that have the given role.static GuildGroupCreates a group defined as all users that have the given role.static GuildGroupCreates a group defined as all users that have the given role.static GuildGroupGroups.hasRolesAll(Snowflake... roles) Creates a group defined as all users that have all of the given roles.static GuildGroupGroups.hasRolesAll(Collection<Snowflake> roles) Creates a group defined as all users that have all of the given roles.static GuildGroupGroups.hasRolesAll(Supplier<? extends Collection<Snowflake>> roles) Creates a group defined as all users that have all of the given roles.static GuildGroupGroups.hasRolesAll(Flux<Snowflake> roles) Creates a group defined as all users that have all of the given roles.static GuildGroupGroups.hasRolesAll(Mono<? extends Collection<Snowflake>> roles) Creates a group defined as all users that have all of the given roles.static GuildGroupGroups.hasRolesAny(Snowflake... roles) Creates a group defined as all users that have any of the given roles.static GuildGroupGroups.hasRolesAny(Collection<Snowflake> roles) Creates a group defined as all users that have any of the given roles.static GuildGroupGroups.hasRolesAny(Supplier<? extends Collection<Snowflake>> roles) Creates a group defined as all users that have any of the given roles.static GuildGroupGroups.hasRolesAny(Flux<Snowflake> roles) Creates a group defined as all users that have any of the given roles.static GuildGroupGroups.hasRolesAny(Mono<? extends Collection<Snowflake>> roles) Creates a group defined as all users that have any of the given roles.static GuildGroupGroups.inWhitelist(Snowflake... users) Creates a group composed of a set of users.static GuildGroupGroups.inWhitelist(Collection<Snowflake> users) Creates a group composed of a set of users.static GuildGroupGroups.inWhitelist(Supplier<? extends Collection<Snowflake>> users) Creates a group composed of a set of users.static GuildGroupGroups.inWhitelist(Flux<Snowflake> users) Creates a group composed of a set of users.static GuildGroupGroups.inWhitelist(Mono<? extends Collection<Snowflake>> users) Creates a group composed of a set of users.static GuildGroupCreates a group composed of a single user.static GuildGroupCreates a group composed of a single user.static GuildGroupCreates a group composed of a single user.static GuildGroupGroups.remote(GuildGroup group, Snowflake guild) Decorates a group so that membership is always checked in relation to the given guild, rather than the guild where the command was executed in.static GuildGroupGroups.remote(GuildGroup group, Supplier<Snowflake> guild) Decorates a group so that membership is always checked in relation to the given guild, rather than the guild where the command was executed in.static GuildGroupGroups.remote(GuildGroup group, Mono<Snowflake> guild) Decorates a group so that membership is always checked in relation to the given guild, rather than the guild where the command was executed in.Methods in dev.sympho.bot_utils.access with parameters of type GuildGroupModifier and TypeMethodDescriptionstatic GuildGroupGroups.all(GuildGroup... groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.allGuild(GuildGroup... groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.any(GuildGroup... groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.static GuildGroupGroups.anyGuild(GuildGroup... groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.AccessValidator.hasAccess(GuildGroup group) Determines whether the invoking user in the current execution context has access equivalent to the given group.ChannelAccessValidator.hasAccess(GuildGroup group) static NamedGuildGroupGroups.named(GuildGroup group, String name) Adds a name to an existing group.static AccessManagerAccessManager.overridable(GuildGroup overrideGroup) Creates a manager that issues validators that generally perform group membership checks, but also allows a given group to override any permission in the system (that is, users that are members of the given group have equivalent permissions to any other group).static GuildGroupGroups.remote(GuildGroup group, Snowflake guild) Decorates a group so that membership is always checked in relation to the given guild, rather than the guild where the command was executed in.static GuildGroupGroups.remote(GuildGroup group, Supplier<Snowflake> guild) Decorates a group so that membership is always checked in relation to the given guild, rather than the guild where the command was executed in.static GuildGroupGroups.remote(GuildGroup group, Mono<Snowflake> guild) Decorates a group so that membership is always checked in relation to the given guild, rather than the guild where the command was executed in.AccessValidator.validate(GuildGroup group) Determines whether the invoking user in the current execution context has access equivalent to the given group.Method parameters in dev.sympho.bot_utils.access with type arguments of type GuildGroupModifier and TypeMethodDescriptionstatic GuildGroupGroups.allGuild(Iterable<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.allGuild(Stream<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.allGuild(Flux<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of all of the given groups.static GuildGroupGroups.anyGuild(Iterable<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.static GuildGroupGroups.anyGuild(Stream<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups.static GuildGroupGroups.anyGuild(Flux<GuildGroup> groups) Composes multiple groups into a single group where a user is only a member if they are a member of any of the given groups. -
Uses of GuildGroup in dev.sympho.bot_utils.event
Methods in dev.sympho.bot_utils.event with parameters of type GuildGroupModifier and TypeMethodDescriptionChannelEventContext.belongs(Snowflake user, GuildGroup group) ChannelEventContext.belongs(User user, GuildGroup group) EventContext.belongs(Snowflake user, GuildGroup group) Determines whether the given user belongs to the given group in the context of this event.EventContext.belongs(User user, GuildGroup group) Determines whether the given user belongs to the given group in the context of this event.ChannelEventContext.hasAccess(GuildGroup group) EventContext.hasAccess(GuildGroup group) EventContext.validate(GuildGroup group)