getRSBs
getRSBs
allows the retrieval of data for all RSBs, or for a subset of RSBs.
⚠️ NOTE ⚠️ If you need both skills and RSBs, consider using
getSkills
with theincludeRSBs
option.
Examples
Get All RSBs
getRSBs
will return data for all RSBs if not given any options.
Get Specific RSBs
getRSBs
accepts an options
object, which supports an ids
array. This array can be used to filter the results if you're only looking for specific RSBs.
Get RSBs for a Specific Pokémon
getRSBs
supports an options.pokemonIDs
array. This array will filter results by the Pokémon to whom the RSB belongs.
NOTE: options.ids
and options.pokemonIDs
may not be used together. If you attempt to provide both options, an error will be thrown. If you are looking for an intersection of this data, you will need to filter the lists yourself.
Get RSBs for a Specific Pokémon
getRSBs
supports an options.skillIDs
array. This array will filter results by the skill to which the RSB belongs.
NOTE: options.ids
and options.skillIDs
may not be used together. If you attempt to provide both options, an error will be thrown. If you are looking for an intersection of this data, you will need to filter the lists yourself.
Using pokemonIDs
and skillIDs
together
pokemonIDs
and skillIDs
togethergetRSBs
supports using both the options.pokemonIDs
and options.skillIDs
options at the same time. This is an additive operation; e.g. the returned array will be a union of the skill and Pokémon RSBs, rather than an intersection.
Options
Last updated