getReactionCount method

int getReactionCount(
  1. String reaction
)

Implementation

int getReactionCount(String reaction) {
  if (messageReactions.containsKey(reaction)) {
    return messageReactions[reaction]!.length;
  } else {
    return totalReactions;
  }
}