Class DefaultGuildScopeProvider
java.lang.Object
com.github.kaktushose.jda.commands.scope.DefaultGuildScopeProvider
- All Implemented Interfaces:
Implementation.ExtensionProvidable,GuildScopeProvider,Function<CommandData, Set<Long>>
Default implementation of
GuildScopeProvider. This will always return an empty Set!- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(CommandData commandData) Gets a Set of guild ids the provided command should be registered for.
-
Constructor Details
-
DefaultGuildScopeProvider
public DefaultGuildScopeProvider()
-
-
Method Details
-
apply
Description copied from interface:GuildScopeProviderGets a Set of guild ids the provided command should be registered for.- Specified by:
applyin interfaceFunction<CommandData, Set<Long>>- Specified by:
applyin interfaceGuildScopeProvider- Parameters:
commandData- a copy of theCommandDatato register- Returns:
- always an empty set
-