Interface GuildScopeProvider
- All Superinterfaces:
Function<CommandData,
,Set<Long>> Implementation.ExtensionProvidable
- All Known Implementing Classes:
DefaultGuildScopeProvider
- 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 non-sealed interface GuildScopeProvider
extends Function<CommandData,Set<Long>>, Implementation.ExtensionProvidable
Interface for declaring on which Guilds a guild scoped command should be registered.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionapply
(CommandData commandData) Gets a Set of guild ids the provided command should be registered for.
-
Method Details
-
apply
Gets a Set of guild ids the provided command should be registered for.- Specified by:
apply
in interfaceFunction<CommandData,
Set<Long>> - Parameters:
commandData
- a copy of theCommandData
to register- Returns:
- a Set of guild ids the provided command should be registered for
-