def submit(self, ctx: commands.Context):
        """
        A context-manager that submits the current task to jishaku's task list
        and removes it afterwards.

        Arguments
        ---------
        ctx: commands.Context
            A Context object used to derive information about this command task.
        """

        self.task_count += 1
        cmdtask = CommandTask(self.task_count, ctx, asyncio.Task.current_task())
        self.tasks.append(cmdtask)

        try:
            yield cmdtask
        finally:
            if cmdtask in self.tasks:
                self.tasks.remove(cmdtask)
def submit ( self , ctx : commands . Context ) : self . task_count += 1 cmdtask = CommandTask ( self . task_count , ctx , asyncio . Task . current_task ( ) ) self . tasks . append ( cmdtask ) try : yield cmdtask finally : if cmdtask in self . tasks : self . tasks . remove ( cmdtask )
A context-manager that submits the current task to jishaku's task list
        and removes it afterwards.

        Arguments
        ---------
        ctx: commands.Context
            A Context object used to derive information about this command task.