R/utils.R

#' Get summoner ID from summoner name
#'
#' @param summoner_name name of summoner to lookup
#'
#' @return summoner id
#' @export
#'
#' @examples
#' get_id_from_name("dyrus")
get_id_from_name <- function(summoner_name) {
  get_summoner_by_name(summoner_name)[[1]]$id
}
stillmatic/leagueR documentation built on May 30, 2019, 5:44 p.m.