autocomplete_name {scryr} | R Documentation |
Autocomplete the name of a card
Description
Returns a string vector of up to 20 full English card names that could be
autocompletions of the given name
argument.
Usage
autocomplete_name(name, include_extras = FALSE)
Arguments
name |
A string with a card's name (or part of it). See details. |
include_extras |
If |
Details
The names are sorted with the nearest match first, highly favoring results that begin with your given string.
Spaces, punctuation, and capitalization are ignored.
If name
is less than 2 characters long, or if no names match, the vector
will contain 0 elements (instead of returning any errors).
Value
A string vector.
References
https://scryfall.com/docs/api/cards/autocomplete
Examples
# Get all related card names
autocomplete_name("falken")
[Package scryr version 1.0.0 Index]