Class BotlistService

java.lang.Object
de.chojo.jdautil.botlist.BotlistService
All Implemented Interfaces:
Runnable

public class BotlistService extends Object implements Runnable
Class which can handle reporting to botlists.
  • Method Details

    • build

      public static BotlistService.Builder build(ShardManager shardManager, Supplier<Integer> guildCount, Supplier<Integer> userCount)
      Get a builder for a botlist reporter
      Parameters:
      shardManager - shardmanager to use for statistics
      Returns:
      builder instance
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • hasVoted

      public List<BotList> hasVoted(User user)
      The bot lists on which the user has an active vote. Only lists with a vote checker are asked.
      Parameters:
      user - user to check
      Returns:
      lists with an active vote of the user
    • botlists

      public Set<BotList> botlists()