Interface ChunkingFilter

    • Method Detail

      • filter

        boolean filter​(long guildId)
        Decide whether the specified guild should chunk members.
        Parameters:
        guildId - The guild id
        Returns:
        True, if this guild should chunk
      • include

        @Nonnull
        static ChunkingFilter include​(@Nonnull
                                      long... ids)
        Factory method to chunk a whitelist of guild ids.
        All guilds that are not mentioned will use lazy loading.

        This is useful to only chunk specific guilds like the hub server of a bot.

        Parameters:
        ids - The ids that should be chunked
        Returns:
        The resulting filter
      • exclude

        @Nonnull
        static ChunkingFilter exclude​(@Nonnull
                                      long... ids)
        Factory method to disable chunking for a blacklist of guild ids.
        All guilds that are not mentioned will use chunking.

        This is useful when the bot is only in one very large server that takes most of its memory and should be ignored instead.

        Parameters:
        ids - The ids that should not be chunked
        Returns:
        The resulting filter