def get_boosters(self) -> boosters.Boosters: """ Get the List of Hypixel Coin Boosters and Their Info. Returns ------- `boosters.Boosters` The Booster class object which depicts the booster data model. """ json = self._fetch(self.url["boosters"]) return boosters.Boosters(json["boosters"], json)
def get_boosters(self) -> boosters.Boosters: """ Get the List of Hypixel Coin Boosters and Their Info. Parameters: None Returns: boosters (Boosters): The Booster Class Object, Which depicts the Booster Data Model. """ json, success = self._fetch("/boosters") if not success: raise HypixelAPIError( "The Key given is invalid, or something else has problem.") return boosters.Boosters(json["boosters"])