Interface GuildScopeProvider
- All Superinterfaces:
Function<CommandData,
Set<Long>>
- 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.
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
-