Пример #1
0
    async def unready(self, user: Member) -> None:
        player = Player(user)
        if player not in self.players:
            raise UsageException.join_the_lobby_first(self.channel)

        ind = self.players.index(player)
        self.players[ind].set_unready()
        self.reset_orderings()

        await self.show(title=f"{player.get_name()} is not ready.")
Пример #2
0
    async def unready(self, user: Member) -> None:
        player = Player(user)
        if player not in self.players:
            raise UsageException.join_the_lobby_first(self.channel)

        ind = self.players.index(player)
        player = self.players[ind]
        if player.is_ready():
            player.set_unready()
            self.clear_cache()

        await self.show(desc=f"{player.get_name()} is not Ready")