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.

@FunctionalInterface public interface GuildScopeProvider extends Function<CommandData,Set<Long>>
Interface for declaring on which Guilds a guild scoped command should be registered.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(CommandData commandData)
    Gets a Set of guild ids the provided command should be registered for.

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      Set<Long> apply(CommandData commandData)
      Gets a Set of guild ids the provided command should be registered for.
      Specified by:
      apply in interface Function<CommandData,Set<Long>>
      Parameters:
      commandData - a copy of the CommandData to register
      Returns:
      a Set of guild ids the provided command should be registered for