def get_watchdog_info(self) -> watchdog.Watchdog: """ Get the List of Stats About the Watchdog for the last few days. Returns ------- `watchdog.Watchdog` The Watchdog data model with certain important attributes for you to get data about the things by watchdog. """ json = self._fetch(self.url["watchdog"]) return watchdog.Watchdog(json)
def get_watchdog_info(self) -> watchdog.Watchdog: """ Get the List of Stats About the Watchdog for the last few days. Parameters: None Returns: watchdog (Watchdog): The Watchdog data model with certain important attributes for you to get data about the things by watchdog. """ json, success = self._fetch("/watchdogstats") if not success: raise HypixelAPIError( f"The Key given is invalid, or something else has problem. Cause: {json['cause']}" ) return watchdog.Watchdog(json)