diff --git a/royalpack/events/discord_cv.py b/royalpack/events/discord_cv.py new file mode 100644 index 00000000..9fd5d536 --- /dev/null +++ b/royalpack/events/discord_cv.py @@ -0,0 +1,17 @@ +import discord +from typing import * +from royalnet.serf.discord.discordserf import DiscordSerf +from royalnet.commands import * + + +class DiscordCvEvent(Event): + name = "discord_cv" + + def run(self, guild_id: int, **kwargs): + if not self.interface.name == "discord": + raise UnsupportedError() + serf: DiscordSerf = self.interface.serf + client: discord.Client = serf.client + guild: discord.Guild = client.get_guild(guild_id) + members: List[discord.Member] = guild.members + ...