""" Contained commands and views for record commands. """ import nextcord from nextcord.ext import commands class RecordCog(commands.Cog, name="Record Commands"): """ Class holds record commands. """ def __init__(self, bot) -> None: """ Default constructor for RecordCog class. Does nothing. """ super().__init__() self.bot: commands.Bot = bot @nextcord.slash_command() async def record(self, interaction: nextcord.Interaction): """ Parent slash command for record. Never called. """ @record.subcommand(description="Record an event and its participants.") async def event( self, interaction: nextcord.Interaction, host: nextcord.Member = nextcord.SlashOption( required=False, description="An alternative host if you are recording event for someone else.", ), ): # check role # create view to add members # add points to table pass