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 Summary
Modifier and TypeMethodDescriptionbooleanAbilities that are ON (and have failed theisOff(org.telegram.telegrambots.abilitybots.api.objects.Ability)condition) will be processed by this method.
-
Method Details
-
isOff
- Parameters:
ab- the target ability- Returns:
- true if the ability has been turned off
-
processAbility
Abilities that are ON (and have failed theisOff(org.telegram.telegrambots.abilitybots.api.objects.Ability)condition) will be processed by this method.- Parameters:
ab- the target ability- Returns:
- the processed ability
-