Source code for novauniverse.interfaces.stats.discord
from __future__ import annotations
from ... import BasicInterface, NovaAPI, Endpoints
from .discord_stats import DiscordStats
[docs]
class Discord(BasicInterface):
"""
The interface for NovaAPI's ``/stats/discord`` endpoint.
Allows you to get ๐ฎdiscord stats.
"""
def __init__(self):
super().__init__()
self.api = NovaAPI(Endpoints.STATS_DISCORD)
[docs]
def get_stats(self) -> DiscordStats:
"""Get's and returns all server stats."""
return DiscordStats(self.api.get())