Class Ability


  • public final class Ability
    extends Object
    An ability is a fully-fledged bot action that contains all the necessary information to process:
    1. A response to a command
    2. A post-response to a command
    3. A reply to a sequence of actions

    In-order to instantiate an ability, you can call builder() to get the Ability.AbilityBuilder. Once you're done setting your ability, you'll call Ability.AbilityBuilder.build() to get your constructed ability.

    The only optional fields in an ability are info, postAction, flags and replies.

    Author:
    Abbas Abou Daya