isSlashCommand function

bool isSlashCommand(
  1. String input
)

Check if input is a slash command.

Implementation

bool isSlashCommand(String input) {
  return input.trimLeft().startsWith('/');
}