Class DefaultGuildScopeProvider

java.lang.Object
com.github.kaktushose.jda.commands.scope.DefaultGuildScopeProvider
All Implemented Interfaces:
GuildScopeProvider, Function<net.dv8tion.jda.api.interactions.commands.build.CommandData,Set<Long>>

public class DefaultGuildScopeProvider extends Object implements GuildScopeProvider
Default implementation of GuildScopeProvider. This will always return an empty Set!
See Also:
  • Constructor Details

    • DefaultGuildScopeProvider

      public DefaultGuildScopeProvider()
  • Method Details

    • apply

      public Set<Long> apply(net.dv8tion.jda.api.interactions.commands.build.CommandData commandData)
      Description copied from interface: GuildScopeProvider
      Gets a Set of guild ids the provided command should be registered for.
      Specified by:
      apply in interface Function<net.dv8tion.jda.api.interactions.commands.build.CommandData,Set<Long>>
      Specified by:
      apply in interface GuildScopeProvider
      Parameters:
      commandData - a copy of the CommandData to register
      Returns:
      always an empty set