Interface AbilityToggle

All Known Implementing Classes:
BareboneToggle, CustomToggle, DefaultToggle

public interface AbilityToggle
This interface can be used to toggle or customize unwanted default abilities by the user.
  • Method Details

    • isOff

      boolean isOff(Ability ab)
      Parameters:
      ab - the target ability
      Returns:
      true if the ability has been turned off
    • processAbility

      Ability processAbility(Ability ab)
      Abilities that are ON (and have failed the isOff(org.telegram.abilitybots.api.objects.Ability) condition) will be processed by this method.
      Parameters:
      ab - the target ability
      Returns:
      the processed ability