hasSlashCommand property

  1. @override
bool hasSlashCommand
inherited

Whether this entity has a child entity that is a slash command or has a slash command itself.

Implementation

@override
bool get hasSlashCommand => children.any((child) =>
    (child is ChatCommand && child.resolvedOptions.type != CommandType.textOnly) ||
    child.hasSlashCommand);