The species lookup for regional/alternate forms (e.g., exeggutor-alola) would error out. This will be fixed by querying the pokemon-species endpoint with the base species name instead of the form name.
The PokemonJSONStruct has now added a new struct to it:
type PokemonJSONStruct {
....
Species struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"species"`
}
The call to connections.PokemonSpeciesApiCall() will also use pokemonStruct.Species.Name instead of user input.
The species lookup for regional/alternate forms (e.g.,
exeggutor-alola) would error out. This will be fixed by querying thepokemon-speciesendpoint with the base species name instead of the form name.The
PokemonJSONStructhas now added a newstructto it:The call to
connections.PokemonSpeciesApiCall()will also usepokemonStruct.Species.Nameinstead of user input.