1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-12-17 23:24:20 +00:00
royalnet/royalpack/stars/api_discord_cv.py

13 lines
392 B
Python

from royalnet.constellation.api import *
class ApiDiscordCvStar(ApiStar):
path = "/api/discord/cv/v1"
summary = "Get the members status of a single Discord guild. Equivalent to calling /cv in a chat."
tags = ["discord"]
async def api(self, data: ApiData) -> dict:
response = await self.interface.call_herald_event("discord", "discord_cv")
return response