1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2025-02-17 10:53:57 +00:00
royalnet/royalpack/stars/api_discord_cv.py

14 lines
392 B
Python
Raw Normal View History

2020-02-08 01:49:07 +01:00
from royalnet.constellation.api import *
2019-11-29 20:05:09 +01:00
2020-02-08 01:49:07 +01:00
class ApiDiscordCvStar(ApiStar):
path = "/api/discord/cv/v1"
2019-11-29 20:05:09 +01:00
2020-03-09 21:21:07 +01:00
summary = "Get the members status of a single Discord guild. Equivalent to calling /cv in a chat."
tags = ["discord"]
2020-02-08 01:49:07 +01:00
async def api(self, data: ApiData) -> dict:
2019-12-30 00:07:48 +01:00
response = await self.interface.call_herald_event("discord", "discord_cv")
2020-02-08 01:49:07 +01:00
return response