isAvailableFor

Whether this Command is selectable in the composer given the currently-active composer action:

  • Edit → always false.

  • Replyfalse for commands in the moderation_set (e.g. /mute, /ban); true otherwise.

  • null or any other action → true.

Parameters

action

The composer action currently active, or null when the composer is in its default state.